Skip to content

Commit 3482904

Browse files
committed
ignore hidden table rows when checking multiple boxes with shift
1 parent 8965b0b commit 3482904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/mod/src/checkBoxes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const shiftClickCheckboxRange = (table: HTMLTableElement): OnSelect => {
55

66
const checkIntermediateBoxes = (first: HTMLInputElement, last: HTMLInputElement) => {
77
let started = false;
8-
for (const input of table.querySelectorAll('tbody input:not(:disabled)')) {
8+
for (const input of table.querySelectorAll('tbody tr:not(.none) input:not(:disabled)')) {
99
if (first == input || last == input) {
1010
if (started) return;
1111
started = true;

0 commit comments

Comments
 (0)