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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -107,10 +107,6 @@ body {
|
|||
background: hsl(340, 45%, 65%);
|
||||
}
|
||||
|
||||
.item.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.item:focus-within {
|
||||
box-shadow: var(--focus-box);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue