Commit 441f4c31 authored by 杨奕's avatar 杨奕 Committed by FuryBean

Table: remove highlight class after data change (#1977)

parent 05a442f6
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment