luci-theme-material: correctness fixes
authorPaul Donald <redacted>
Tue, 26 May 2026 10:09:31 +0000 (13:09 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:47 +0000 (15:49 +0300)
Signed-off-by: Paul Donald <redacted>
themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js

index 21d94570c54215317a39515c2354d767057a8b11..62ef014630e1fd306bcb5410bc6f6b8e2f170ba9 100644 (file)
@@ -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');
                        }
git clone https://git.99rst.org/PROJECT