User tests: Successful: Unsuccessful:
Pull Request for Issue #46364 .
Introduce a new class (nav-active-open) for the default menu, allowing control over whether submenus are opened automatically on page load for the active menu item.
Caution
This functionality should not be activated by default without an additional class for all default menus, as it may not be desirable in various other module positions.
Example - Cassiopeia menu position

Additionally updated the toggleSubMenu method to use optional chaining when setting the aria-expanded attribute, preventing errors if the target element is missing.
sidebar-rightDefaultStep 1
Help -> WorkflowsStep 2
nav-active-openHelp -> WorkflowsImportant
For this to test an update of the media asset is required, please use the prebuilt packages or run npm install.
Should always be collapsed - with and without the class.
Step 1
Submenu with menu entry Workflows should be always collapsed (without the class).
Step 2
Submenu with menu entry Workflows should stay open on new page load if Workflow is the current active item (with class set).
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
This pull request enhances the menu component's accessibility and behavior by adding a new setting to control submenu state on page load and improving error handling. The most important changes are grouped below:
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript Repository NPM Change |
I have tested this item ✅ successfully on f231e7a
It works as described but I think it needs some documentation somewhere. Otherwise, how is anyone supposed to know that a style statement is needed to activate the behaviour?
Place for documentation: https://docs.joomla.org/J4.x:Submenus (?)
Place for documentation: https://docs.joomla.org/J4.x:Submenus (?)
Thank you @ceford 💚
Once it has been finally decided whether this is the right way to go, I will of course be happy to document it. Thank you for finding the right place.
I have tested this item ✅ successfully on f231e7a
I was able to test this successfully :) (thanks @LadySolveig for the Layout: Default) hint...
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
NPM Resource Changed
bug
PR-6.0-dev
|
||
RTC
More a feature than a bug fix, rebased to 6.1. Thanks @LadySolveig for addressing this issue so quickly
| Title |
|
||||||
| Category | JavaScript Repository NPM Change | ⇒ | Repository Administration com_banners com_categories com_contact com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_menus com_modules com_newsfeeds com_plugins com_redirect com_templates com_users JavaScript NPM Change Front End |
| Labels |
Added:
RTC
PR-6.1-dev
|
||
I have tested this item ✅ successfully on f231e7a
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46397.