Skip to content

Commit

Permalink
fix: fixes issue where in certain cases handleNodeDrop and handlePare…
Browse files Browse the repository at this point in the history
…ntDrop are both called
  • Loading branch information
sashamilenkovic committed Dec 4, 2024
1 parent 7a4ee69 commit 74433a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ export function handleParentDrop<T>(
data: ParentEventData<T>,
state: DragState<T>
) {
data.e.stopPropagation();

dropped = true;

const config = data.targetData.parent.data.config;
Expand Down

0 comments on commit 74433a7

Please sign in to comment.