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 data = states.data || [];
|
||||||
const keysMap = getKeysMap(data, rowKey);
|
const keysMap = getKeysMap(data, rowKey);
|
||||||
const info = keysMap[key];
|
const info = keysMap[key];
|
||||||
if (info) {
|
states.currentRow = info ? info.row : null;
|
||||||
states.currentRow = info.row;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TableStore.prototype.updateCurrentRow = function() {
|
TableStore.prototype.updateCurrentRow = function() {
|
||||||
|
|
Loading…
Reference in New Issue