Skip to content

Commit

Permalink
fix(drag): set dragging to false on drag end
Browse files Browse the repository at this point in the history
# What's changed?

* Set `dragging` to `false` on drag end event

# Fixes
* #2183
  • Loading branch information
bcakmakoglu committed May 27, 2022
1 parent 03f0be6 commit d0efd5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useDrag/index.ts
Expand Up @@ -118,6 +118,7 @@ function useDrag({
}

event.on('end', (event) => {
setDragging(false)
if (dragItems.current) {
updateNodePositions(dragItems.current, false, false);

Expand Down

0 comments on commit d0efd5b

Please sign in to comment.