diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte index ed53a7eb32..a10c88f410 100644 --- a/packages/client/src/components/Component.svelte +++ b/packages/client/src/components/Component.svelte @@ -63,6 +63,7 @@ $: selected = $builderStore.inBuilder && $builderStore.selectedComponentId === instance._id + $: inSelectedPath = $builderStore.selectedComponentPath?.includes(id) $: interactive = $builderStore.previewType === "layout" || insideScreenslot $: evaluateConditions(enrichedSettings?._conditions) $: componentSettings = { ...enrichedSettings, ...conditionalSettings } @@ -174,13 +175,12 @@ {#key propsHash} - {#if constructor && componentSettings && visible} + {#if constructor && componentSettings && (visible || inSelectedPath)}
{#if children.length}