fix: remove this.isIn

This commit is contained in:
gx-mac 2021-04-07 15:49:19 +08:00
parent 1e4cada695
commit 6e3bf63645
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "bee-tree",
"version": "2.1.53",
"version": "2.1.54-beta",
"version-yonui": "2.1.27-yonui.0",
"description": "Tree ui component for react",
"keywords": [

View File

@ -755,7 +755,7 @@ onExpand(treeNode,keyType) {
const targetDom = e.target;
// 如果当前tree节点不包括上一个焦点节点会触发此方法
if(this.tree == targetDom && !this.isIn && !this.tree.contains(e.relatedTarget)){
if(this.tree == targetDom && !this.tree.contains(e.relatedTarget)){
const {onFocus, children} = this.props;
const {selectedKeys=[]} = this.state;
let tabIndexKey = selectedKeys[0]
@ -786,13 +786,10 @@ onExpand(treeNode,keyType) {
onUlMouseEnter(e){
this.isIn = true;
// console.log('onUlMouseEnter----isIn-----',this.isIn);
// console.log('onUlMouseEnter----isIn-----');
}
onUlMouseLeave(e){
this.isIn = false;
// console.log('onUlMouseLeave----isIn-----',this.isIn);
// console.log('onUlMouseLeave----isIn-----');
}
getFilterExpandedKeys(props, expandKeyProp, expandAll) {