Browse Source

Tree: not highlight tree node when currentKey is null (#15668)

Inside 6 năm trước cách đây
mục cha
commit
cead2a8be3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/tree/src/model/tree-store.js

+ 1 - 0
packages/tree/src/model/tree-store.js

@@ -331,6 +331,7 @@ export default class TreeStore {
 
   setCurrentNodeKey(key) {
     if (key === null) {
+      this.currentNode.isCurrent = false;
       this.currentNode = null;
       return;
     }