We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbfc1b8 commit 1a1e0e9Copy full SHA for 1a1e0e9
manager/media/style/default/js/modx.js
@@ -82,6 +82,12 @@
82
e.preventDefault();
83
}
84
85
+ if (!a.classList.contains('dropdown-toggle') && !a.closest('ul').classList.contains('dropdown-menu')) {
86
+ mm.querySelectorAll('.nav li.active').forEach(function (el) {
87
+ el.classList.remove('active');
88
+ });
89
+ a.closest('.nav > li').classList.add('active');
90
+ }
91
});
92
mm.addEventListener('click', function (e) {
93
let li = e.target.closest('.nav li');
0 commit comments