Skip to content

Commit a1b098c

Browse files
committed
use tbody
1 parent 2e3b593 commit a1b098c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webroot/js/filter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ function filterRows() {
8686

8787
if (filter) {
8888
var table = document.querySelector("table.filterable");
89-
var rows = Array.from(table.querySelectorAll(":scope > tr:nth-child(n+2)"));
89+
var tbody = table.querySelector("tbody");
90+
var rows = Array.from(tbody.querySelectorAll(":scope > tr:nth-child(n+2)"));
9091
var column = table.querySelector("th#" + filter).cellIndex;
9192
rows.forEach(function (row) {
9293
if (

0 commit comments

Comments
 (0)