1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Only allow selecting components via wrappers if interactive

This commit is contained in:
Andrew Kingston 2024-08-01 12:02:09 +01:00
parent 1219463162
commit 50a4f75f2b
No known key found for this signature in database

View file

@ -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}
<ComponentErrorState