Skip to content

Commit 8023f13

Browse files
authored
Merge pull request frontend-collective#59 from bpneal/feature/successfulDropOutsideOfSortableTreeScope
Allow the tree to drop successfully outside its own scope without cau…
2 parents 0953ffa + 9c146f6 commit 8023f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-sortable-tree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class ReactSortableTree extends Component {
262262
}
263263

264264
endDrag(dropResult) {
265-
if (!dropResult) {
265+
if (!dropResult || !dropResult.node) {
266266
return this.setState({
267267
draggingTreeData: null,
268268
swapFrom: null,

0 commit comments

Comments
 (0)