Fix large table search visibility
This commit is contained in:
@@ -287,7 +287,9 @@
|
||||
|
||||
sortedRows.forEach((row) => {
|
||||
table.appendChild(row);
|
||||
row.hidden = !rowMatchesQuery(row, state.query);
|
||||
const isVisible = rowMatchesQuery(row, state.query);
|
||||
row.classList.toggle('sg-large-table__row--hidden', !isVisible);
|
||||
row.setAttribute('aria-hidden', isVisible ? 'false' : 'true');
|
||||
});
|
||||
|
||||
setHeaderState(state.columnIndex, state.direction);
|
||||
|
||||
Reference in New Issue
Block a user