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

pull/11888/head
Jikkai Xiao 2018-07-05 11:09:16 +08:00 committed by GitHub
parent b6eaaf6943
commit 45241cbaa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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() {