Skip to content

Commit 4daebc0

Browse files
jianhuifanzombieJ
authored andcommitted
fix:onDragEnter this.dragNode undefined (#251)
1 parent e41c15a commit 4daebc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Tree.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class Tree extends React.Component {
158158

159159
onDragEnter(e, treeNode) {
160160
const dropPosition = this.calcDropPosition(e, treeNode);
161+
if (!this.dragNode) return;
161162
if (
162163
this.dragNode.props.eventKey === treeNode.props.eventKey &&
163164
dropPosition === 0

0 commit comments

Comments
 (0)