Skip to content

Commit

Permalink
fix(menu): Navigation: clicking on a sub element (page) inside the ex…
Browse files Browse the repository at this point in the history
…pandable category expands all categories

fix #186
  • Loading branch information
vogloblinsky committed Jun 11, 2017
1 parent 9ffc457 commit 86ac1b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/js/menu.js
Expand Up @@ -86,8 +86,9 @@ document.addEventListener('DOMContentLoaded', function() {
if (parentUl) {
parentChapterMenu = parentUl.parentNode;
if (parentChapterMenu) {
var toggler = parentChapterMenu.querySelector('.menu-toggler');
if (toggler) {
var toggler = parentChapterMenu.querySelector('.menu-toggler'),
elementIconChild = toggler.getElementsByClassName(faAngleUpClass)[0];
if (toggler && !elementIconChild) {
toggler.click();
}
}
Expand Down

0 comments on commit 86ac1b4

Please sign in to comment.