Skip to content

Commit d24c2e0

Browse files
authored
fix invalid target
frontend-collective#740
1 parent 3c29cbf commit d24c2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-sortable-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ 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+
setTimeout(() => {this.endDrag()})
234234
}
235235
}
236236

0 commit comments

Comments
 (0)