mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-theme-material: correctness fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ return baseclass.extend({
|
|||||||
const ul2 = a.nextElementSibling;
|
const ul2 = a.nextElementSibling;
|
||||||
|
|
||||||
document.querySelectorAll('li.slide.active').forEach(function(li) {
|
document.querySelectorAll('li.slide.active').forEach(function(li) {
|
||||||
if (li !== a.parentNode || li == ul1) {
|
if (li !== ul1) {
|
||||||
li.classList.remove('active');
|
li.classList.remove('active');
|
||||||
li.childNodes[0].classList.remove('active');
|
li.childNodes[0].classList.remove('active');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user