Skip to content

Commit

Permalink
fix: filters.js aria-controls target (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvg authored Nov 22, 2023
1 parent bdc73d8 commit 94370b7
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 94370b7

Please sign in to comment.