Skip to content

Commit

Permalink
Tree: set isCurrent prop to False (ElemeFE#15870)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkisme authored and oleksiikhr committed Jan 13, 2020
1 parent 21814b9 commit 0b2a8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tree/src/model/tree-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ export default class TreeStore {
}

setCurrentNodeKey(key) {
if (key === null) {
this.currentNode.isCurrent = false;
if (key === null || key === undefined) {
this.currentNode && (this.currentNode.isCurrent = false);
this.currentNode = null;
return;
}
Expand Down

0 comments on commit 0b2a8b5

Please sign in to comment.