Skip to content

Commit

Permalink
Fix for multi level localnav click
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Jan 14, 2025
1 parent aa6effc commit 3026b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/global-navigation/utilities/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export function setActiveDropdown(elem, type) {
const resetActiveDropdown = () => {
[...document.querySelectorAll(selectors.activeDropdown)]
.forEach((activeDropdown) => activeDropdown.classList.remove(activeClass));
if (type !== 'localNavItem') {
if (type && type !== 'localNavItem' && type !== 'headline') {
[...document.querySelectorAll(activeLocalNav)]
.forEach((activeDropdown) => activeDropdown.classList.remove('feds-localnav--active'));
}
Expand Down

0 comments on commit 3026b3f

Please sign in to comment.