Skip to content

Commit b0c91ac

Browse files
authored
Merge pull request #64 from couchbase/fixed-top-level-menu-issues
Fixed top level menu was hiding while click on sub menu
2 parents 7a38de0 + 3562f93 commit b0c91ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/js/01-nav.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@
8282
}
8383
// Toggle class
8484
function toggleActive (e) {
85-
if (this.getAttribute('data-depth') === '1') {
86-
var otherNavs = document.querySelectorAll('.nav-item[data-depth="0"]:not(.is-active)')
87-
for (var i = 0; i < otherNavs.length; i++) {
88-
otherNavs[i].classList.add('is-inactive')
89-
}
90-
}
85+
// if (this.getAttribute('data-depth') === '1') {
86+
// var otherNavs = document.querySelectorAll('.nav-item[data-depth="0"]:not(.is-active)')
87+
// for (var i = 0; i < otherNavs.length; i++) {
88+
// otherNavs[i].classList.add('is-inactive')
89+
// }
90+
// }
9191
this.classList.toggle('open')
9292
this.classList.toggle('is-active')
9393
}

0 commit comments

Comments
 (0)