Pārlūkot izejas kodu

Table: changing current-row-key when current-row-key is assigned to null (#11866)

Jikkai Xiao 7 gadi atpakaļ
vecāks
revīzija
45241cbaa8
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      packages/table/src/table-store.js

+ 1 - 3
packages/table/src/table-store.js

@@ -587,9 +587,7 @@ TableStore.prototype.setCurrentRowKey = function(key) {
   const data = states.data || [];
   const keysMap = getKeysMap(data, rowKey);
   const info = keysMap[key];
-  if (info) {
-    states.currentRow = info.row;
-  }
+  states.currentRow = info ? info.row : null;
 };
 
 TableStore.prototype.updateCurrentRow = function() {