mirror of https://github.com/ElemeFE/element
Table: remove highlight class after data change (#1977)
parent
05a442f694
commit
441f4c31a9
|
@ -95,6 +95,8 @@ export default {
|
|||
const newRow = rows[data.indexOf(newVal)];
|
||||
if (oldRow) {
|
||||
oldRow.classList.remove('current-row');
|
||||
} else if (rows) {
|
||||
[].forEach.call(rows, row => row.classList.remove('current-row'));
|
||||
}
|
||||
if (newRow) {
|
||||
newRow.classList.add('current-row');
|
||||
|
|
Loading…
Reference in New Issue