1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

Prevent dragging of a component while being edited

This commit is contained in:
Andrew Kingston 2021-11-16 11:46:46 +00:00
parent fe7bc33566
commit 1cfb0f467d

View file

@ -70,10 +70,10 @@
$builderStore.inBuilder &&
($builderStore.previewType === "layout" || insideScreenslot) &&
!isBlock
$: draggable = interactive && !isLayout && !isScreen
$: droppable = interactive && !isLayout && !isScreen
$: editable = definition.editable
$: editing = editable && selected && $builderStore.editMode
$: draggable = !editing && interactive && !isLayout && !isScreen
$: droppable = interactive && !isLayout && !isScreen
// Empty components are those which accept children but do not have any.
// Empty states can be shown for these components, but can be disabled