Only allow selecting components via wrappers if interactive
This commit is contained in:
parent
1219463162
commit
50a4f75f2b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue