Skip to content

Commit

Permalink
Adminmenu: Toggle for duplicate menus (#43192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Apr 27, 2024
1 parent d1bef33 commit 886611d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/media_source/mod_menu/js/admin-menu.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ if (sidebar && !sidebar.getAttribute('data-hidden')) {
const allLinks = wrapper.querySelectorAll('a.no-dropdown, a.collapse-arrow, .menu-dashboard > a');
const currentUrl = window.location.href;
const mainNav = document.querySelector('ul.main-nav');
const menuParents = [].slice.call(mainNav.querySelectorAll('li.parent > a'));
const subMenusClose = [].slice.call(mainNav.querySelectorAll('li.parent .close'));
const menuParents = [].slice.call(document.querySelectorAll('ul.main-nav li.parent > a'));
const subMenusClose = [].slice.call(document.querySelectorAll('ul.main-nav li.parent .close'));

// Set active class
allLinks.forEach((link) => {
Expand Down

0 comments on commit 886611d

Please sign in to comment.