Skip to content

Commit e3f247f

Browse files
committed
fix: prevent adding active class to .nav-group-toggle
1 parent 4b47c72 commit e3f247f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/src/navigation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ class Navigation extends BaseComponent {
9595

9696
_setActiveLink() {
9797
Array.from(this._element.querySelectorAll(SELECTOR_NAV_LINK)).forEach(element => {
98+
if (element.classList.contains(CLASS_NAME_NAV_GROUP_TOGGLE)) {
99+
return
100+
}
101+
98102
let currentUrl = String(window.location)
99103

100104
const urlHasParams = /\?.*=/

0 commit comments

Comments
 (0)