fix(core): prevent selecting nodes on drag when selectable disabled

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-02 08:47:38 +01:00
committed by Braks
parent 76525c8c2a
commit 7c026f084a
2 changed files with 6 additions and 5 deletions
@@ -68,6 +68,7 @@ const dragging = useDrag({
id,
el: nodeElement,
disabled: computed(() => !draggable),
selectable: $$(selectable),
onStart(event, node, nodes) {
emit.dragStart({ event, node, nodes, intersections })
},