mirror of https://github.com/ElemeFE/element
Table: changing current-row-key when current-row-key is assigned to null (#11866)
parent
b6eaaf6943
commit
45241cbaa8
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue