Comparing version 0.26.0 to 0.26.1
@@ -8,9 +8,9 @@ # History | ||
## 0.23.x / 2015-12-31 | ||
- change onDataLoaded api to loadData | ||
- change `onDataLoaded` api to `loadData` | ||
## 0.22.x / 2015-12-30 | ||
- add expandedKeys/onExpand/filterTreeNode API | ||
- add `expandedKeys`/`onExpand`/`filterTreeNode` api | ||
## 0.21.x / 2015-12-25 | ||
- add onMouseEnter/onMouseLeave API | ||
- add `onMouseEnter`/`onMouseLeave` api | ||
@@ -17,0 +17,0 @@ ## 0.20.0 / 2015-12-01 |
@@ -98,8 +98,2 @@ 'use strict'; | ||
}); | ||
try { | ||
// ie throw error | ||
e.dataTransfer.setData('text/plain', 'firefox-need-it'); | ||
} finally { | ||
// empty | ||
} | ||
} | ||
@@ -164,13 +158,12 @@ }, { | ||
var key = treeNode.props.eventKey; | ||
this.setState({ | ||
dragOverNodeKey: '', | ||
dropNodeKey: key | ||
}); | ||
if (this.dragNodesKeys.indexOf(key) > -1) { | ||
if (console.warn) { | ||
console.warn('can not drop to dragNode and its children'); | ||
console.warn('can not drop to dragNode(include it\'s children node)'); | ||
} | ||
return; | ||
return false; | ||
} | ||
var st = { | ||
dragOverNodeKey: '', | ||
dropNodeKey: key | ||
}; | ||
this.setState(st); | ||
@@ -177,0 +170,0 @@ var posArr = treeNode.props.pos.split('-'); |
@@ -102,2 +102,8 @@ 'use strict'; | ||
this.props.root.onDragStart(e, this); | ||
try { | ||
// ie throw error | ||
e.dataTransfer.setData('text/plain', 'firefox-need-it'); | ||
} finally { | ||
// empty | ||
} | ||
} | ||
@@ -104,0 +110,0 @@ }, { |
{ | ||
"name": "rc-tree", | ||
"version": "0.26.0", | ||
"version": "0.26.1", | ||
"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
61711
1542