Skip to content

Commit

Permalink
fix: filters.js aria-controls target
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvg committed Oct 23, 2023
1 parent 6d05443 commit 192eef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manon/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function initFilterToggle(filterToggle) {
hideLabel = filterToggle.dataset.hideFiltersLabel || "Verberg filters";
showLabel = filterToggle.innerText;
}
ensureElementHasId(filter);
filterToggle.setAttribute("aria-controls", filter.id);
ensureElementHasId(form);
filterToggle.setAttribute("aria-controls", form.id);
if (expanded) {
filterToggle.setAttribute("aria-expanded", "true");
} else {
Expand Down

0 comments on commit 192eef0

Please sign in to comment.