fix(drag): set dragging to false on drag end

# What's changed?

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

# Fixes
* #2183
This commit is contained in:
Braks
2022-05-27 23:53:33 +02:00
committed by GitHub
parent 03f0be62f7
commit d0efd5b791
+1
View File
@@ -118,6 +118,7 @@ function useDrag({
}
event.on('end', (event) => {
setDragging(false)
if (dragItems.current) {
updateNodePositions(dragItems.current, false, false);