Skip to content

Commit

Permalink
bug: Fix bug where if you open and close a dropdown tabindex is not r…
Browse files Browse the repository at this point in the history
…eset
  • Loading branch information
petesfrench committed Aug 13, 2024
1 parent 1bd8edf commit af53144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/navigation/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function toggleDropdown(toggle) {
navigation.addEventListener("keydown", handleDesktopKeyboardEvents);
} else {
collapseDropdown(toggle, target, true);
setFocusable();
navigation.classList.remove("has-menu-open");
navigation.removeEventListener("keydown", handleDesktopKeyboardEvents);
}
Expand Down

0 comments on commit af53144

Please sign in to comment.