Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Table: changing current-row-key when current-row-key is assigned to n…
…ull (#11866)
  • Loading branch information
jikkai committed Jul 5, 2018
1 parent b6eaaf6 commit 45241cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/table/src/table-store.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 45241cb

Please sign in to comment.