From 8c114fae34930296a4a17181b0815a023ed9b540 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 23 Aug 2021 14:01:57 +0100 Subject: [PATCH] Show component hidden by conditional UI if they would otherwise hide the selected component --- packages/client/src/components/Component.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}