diff --git a/src/react-sortable-tree.js b/src/react-sortable-tree.js index b83e16a0..77e8fc26 100644 --- a/src/react-sortable-tree.js +++ b/src/react-sortable-tree.js @@ -230,7 +230,7 @@ class ReactSortableTree extends Component { // it means that the drag was canceled or the dragSource dropped // elsewhere, and we should reset the state of this tree if (!monitor.isDragging() && this.state.draggingTreeData) { - this.endDrag(); + setTimeout(() => {this.endDrag()}); } }