From bffa8b1f0fbc9851bd8e194b28892eadf9856809 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 5 Sep 2023 11:11:43 +0100 Subject: [PATCH] Ensure only the selected block supports clicking on inner interactive components --- packages/client/src/components/BlockComponent.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/BlockComponent.svelte b/packages/client/src/components/BlockComponent.svelte index b3b6a486c8..8af3a8b75e 100644 --- a/packages/client/src/components/BlockComponent.svelte +++ b/packages/client/src/components/BlockComponent.svelte @@ -26,6 +26,7 @@ $: id = `${block.id}-${context ?? rand}` $: parentId = $component?.id $: inBuilder = $builderStore.inBuilder + $: blockSelected = $builderStore.selectedComponentId === block.id $: instance = { ...props, _component: getComponent(type), @@ -77,6 +78,6 @@ }) - +