use hidden attr instead of display:none
This commit is contained in:
parent
07d71de471
commit
7de35a098f
2 changed files with 1 additions and 9 deletions
|
@ -23,11 +23,7 @@ function updateItems() {
|
|||
let req = tags.get(item).some(x => reqTags.has(x));
|
||||
let exc = tags.get(item).some(x => excTags.has(x));
|
||||
|
||||
if ((req || !anyReq) && !exc) {
|
||||
item.classList.remove('hidden');
|
||||
} else {
|
||||
item.classList.add('hidden');
|
||||
}
|
||||
item.hidden = exc || (anyReq && !req);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue