Comparing version 0.20.1 to 0.20.2
@@ -59,3 +59,4 @@ 'use strict'; | ||
this.state = { | ||
dataLoading: false | ||
dataLoading: false, | ||
dragNodeHighlight: false | ||
}; | ||
@@ -106,3 +107,5 @@ } | ||
e.stopPropagation(); | ||
this.props.root.handleSelect(this); | ||
this.setState({ | ||
dragNodeHighlight: true | ||
}); | ||
this.props.root.handleDragStart(e, this); | ||
@@ -139,2 +142,5 @@ } | ||
e.stopPropagation(); | ||
this.setState({ | ||
dragNodeHighlight: false | ||
}); | ||
this.props.root.handleDrop(e, this); | ||
@@ -302,3 +308,3 @@ } | ||
if (!props.disabled) { | ||
if (props.selected) { | ||
if (props.selected || _this3.state.dragNodeHighlight) { | ||
domProps.className = prefixCls + '-node-selected'; | ||
@@ -305,0 +311,0 @@ } |
{ | ||
"name": "rc-tree", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46637
1118