From: Paul Donald Date: Tue, 26 May 2026 10:09:31 +0000 (+0300) Subject: luci-theme-material: correctness fixes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3c872414bb984ac3fdbad422162764f5c3a0ceb9;p=openwrt-luci.git luci-theme-material: correctness fixes Signed-off-by: Paul Donald --- diff --git a/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js b/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js index 21d94570c5..62ef014630 100644 --- a/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js +++ b/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js @@ -45,7 +45,7 @@ return baseclass.extend({ const ul2 = a.nextElementSibling; document.querySelectorAll('li.slide.active').forEach(function(li) { - if (li !== a.parentNode || li == ul1) { + if (li !== ul1) { li.classList.remove('active'); li.childNodes[0].classList.remove('active'); }