Skip to content

Commit

Permalink
Fix single page filter
Browse files Browse the repository at this point in the history
  • Loading branch information
apvarun committed Jul 12, 2021
1 parent 1e07be1 commit dffc819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
event.target.classList.add("active");
if (type !== "other") {
document
.querySelectorAll(`nav:not(.multipage) .${type}`)
.querySelectorAll(`.${type}`)
.forEach((item) => item.classList.remove("hide"));
} else {
document
Expand All @@ -113,7 +113,7 @@
const showAll = () => {
allTypes.forEach((type) => {
document
.querySelectorAll(`nav:not(.multipage) .${type}`)
.querySelectorAll(`.${type}`)
.forEach((item) => item.classList.remove("hide"));
document
.querySelectorAll(`nav:not(.multipage) .filter-${type}`)
Expand Down

0 comments on commit dffc819

Please sign in to comment.