mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix(frontend): make html app component content selectable (#5359)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
export let customCss: ComponentCustomCSS<'htmlcomponent'> | undefined = undefined
|
||||
export let render: boolean
|
||||
|
||||
const { app, worldStore } = getContext<AppViewerContext>('AppViewerContext')
|
||||
const { app, worldStore, mode } = getContext<AppViewerContext>('AppViewerContext')
|
||||
|
||||
const outputs = initOutput($worldStore, id, {
|
||||
result: undefined,
|
||||
@@ -38,7 +38,9 @@
|
||||
{#if render}
|
||||
<div
|
||||
on:pointerdown={(e) => {
|
||||
e?.preventDefault()
|
||||
if ($mode !== 'preview') {
|
||||
e?.preventDefault()
|
||||
}
|
||||
}}
|
||||
class="h-full w-full"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user