Skip to content

Commit 58440c0

Browse files
committed
add fix from pull request frontend-collective#740
1 parent 3c29cbf commit 58440c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/react-sortable-tree.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ class ReactSortableTree extends Component {
230230
// it means that the drag was canceled or the dragSource dropped
231231
// elsewhere, and we should reset the state of this tree
232232
if (!monitor.isDragging() && this.state.draggingTreeData) {
233-
this.endDrag();
233+
// this.endDrag();
234+
setTimeout(() => {this.endDrag()});
234235
}
235236
}
236237

0 commit comments

Comments
 (0)