Only allow selecting components via wrappers if interactive
This commit is contained in:
parent
1219463162
commit
50a4f75f2b
|
@ -616,9 +616,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleWrapperClick = e => {
|
const handleWrapperClick = e => {
|
||||||
if (isBlock) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
builderStore.actions.selectComponent(id)
|
builderStore.actions.selectComponent(id)
|
||||||
}
|
}
|
||||||
|
@ -691,7 +688,7 @@
|
||||||
data-parent={$component.id}
|
data-parent={$component.id}
|
||||||
style={wrapperCSS}
|
style={wrapperCSS}
|
||||||
{draggable}
|
{draggable}
|
||||||
on:click|self={handleWrapperClick}
|
on:click|self={interactive ? handleWrapperClick : null}
|
||||||
>
|
>
|
||||||
{#if errorState}
|
{#if errorState}
|
||||||
<ComponentErrorState
|
<ComponentErrorState
|
||||||
|
|
Loading…
Reference in New Issue