Browse Source

Prevent dragging of a component while being edited

master
Andrew Kingston 5 years ago
parent
commit
1cfb0f467d
  1. 4
      packages/client/src/components/Component.svelte

4
packages/client/src/components/Component.svelte

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

Loading…
Cancel
Save