From 3c872414bb984ac3fdbad422162764f5c3a0ceb9 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 26 May 2026 13:09:31 +0300 Subject: [PATCH] luci-theme-material: correctness fixes Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/menu-material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }