mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: fix current-node-key === 0 bug
This commit is contained in:
@@ -132,7 +132,7 @@ export default class Node {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user