Context:
I'm customizing the main menu in Moodle using menus and submenus through the custommenuitem field in the administration panel.
My main menu contains an element with a submenu.
Expected Behavior:
When the screen size is reduced, a "More" menu automatically appears to handle menu items that no longer fit.
Navigation within this "More" menu should work normally without affecting other menu elements.
Observed Issue:
When I select an item from the "More" menu, the submenu element from the main menu incorrectly becomes active.
This element receives the aria-current="true" attribute and the a.active class when it should not be marked as active.
Impact:
Visual confusion for users (wrong element highlighted as active)
Accessibility issue with incorrect ARIA attributes
Technical Details:
Platform: Moodle 4.5
Theme : Academi v4.5.1
Component: Main navigation menu with custom menu items
Trigger: Selecting items from responsive "More" menu
Result: Incorrect active state assignment to unrelated menu elements

Context:
I'm customizing the main menu in Moodle using menus and submenus through the custommenuitem field in the administration panel.
My main menu contains an element with a submenu.
Expected Behavior:
When the screen size is reduced, a "More" menu automatically appears to handle menu items that no longer fit.
Navigation within this "More" menu should work normally without affecting other menu elements.
Observed Issue:
When I select an item from the "More" menu, the submenu element from the main menu incorrectly becomes active.
This element receives the aria-current="true" attribute and the a.active class when it should not be marked as active.
Impact:
Visual confusion for users (wrong element highlighted as active)
Accessibility issue with incorrect ARIA attributes
Technical Details:
Platform: Moodle 4.5
Theme : Academi v4.5.1
Component: Main navigation menu with custom menu items
Trigger: Selecting items from responsive "More" menu
Result: Incorrect active state assignment to unrelated menu elements