Skip to content

Commit

Permalink
fix(Tree): clear dragNode when drag is over (#4208)
Browse files Browse the repository at this point in the history
Co-authored-by: ziping <[email protected]>
  • Loading branch information
chrainbow and ziping authored Dec 12, 2022
1 parent 0c612d0 commit e200422
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tree/view/tree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,8 @@ class Tree extends Component {
});

this.props.onDragEnd({ event: e, node: node });

this.dragNode = null;
}

handleDrop(e, node) {
Expand All @@ -1055,6 +1057,8 @@ class Tree extends Component {
event: e,
...params,
});

this.dragNode = null;
}

canDrop(node) {
Expand Down

0 comments on commit e200422

Please sign in to comment.