mirror of https://github.com/ElemeFE/element
Tree: fix current-node-key === 0 bug
parent
3e7996edc8
commit
4609154475
|
@ -132,7 +132,7 @@ export default class Node {
|
||||||
this.expand(null, store.autoExpandParent);
|
this.expand(null, store.autoExpandParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key && store.currentNodeKey && this.key === store.currentNodeKey) {
|
if (key && store.currentNodeKey !== undefined && this.key === store.currentNodeKey) {
|
||||||
store.currentNode = this;
|
store.currentNode = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue