mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: setCurrentKey cancels highlight when param is null (#11205)
This commit is contained in:
@@ -322,6 +322,10 @@ export default class TreeStore {
|
||||
}
|
||||
|
||||
setCurrentNodeKey(key) {
|
||||
if (key === null) {
|
||||
this.currentNode = null;
|
||||
return;
|
||||
}
|
||||
const node = this.getNode(key);
|
||||
if (node) {
|
||||
this.currentNode = node;
|
||||
|
||||
Reference in New Issue
Block a user