From 50a4f75f2b8b19e886fbf028e5b85e2c340e7cd2 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 1 Aug 2024 12:02:09 +0100 Subject: [PATCH] Only allow selecting components via wrappers if interactive --- packages/client/src/components/Component.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte index 852aa30287..6088fb2e9c 100644 --- a/packages/client/src/components/Component.svelte +++ b/packages/client/src/components/Component.svelte @@ -616,9 +616,6 @@ } const handleWrapperClick = e => { - if (isBlock) { - return - } e.stopPropagation() builderStore.actions.selectComponent(id) } @@ -691,7 +688,7 @@ data-parent={$component.id} style={wrapperCSS} {draggable} - on:click|self={handleWrapperClick} + on:click|self={interactive ? handleWrapperClick : null} > {#if errorState}