mirror of https://github.com/ElemeFE/element
Tree: not highlight tree node when currentKey is null (#15668)
parent
b1dd1e8a80
commit
cead2a8be3
|
@ -331,6 +331,7 @@ export default class TreeStore {
|
||||||
|
|
||||||
setCurrentNodeKey(key) {
|
setCurrentNodeKey(key) {
|
||||||
if (key === null) {
|
if (key === null) {
|
||||||
|
this.currentNode.isCurrent = false;
|
||||||
this.currentNode = null;
|
this.currentNode = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue