Enhancements: "WordPress Menu" Widget: Submenu is closed when you click on a sub-item #24212
rickhaer
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
If a user opens the menu with a submenu and then clicks one of the sub-items, the "aria-expanded" attribute is toggled even though the user navigates away from the page, this causes the close animation of the sub-menu and sometimes a "broken looking menu" for the user.
Describe the solution you'd like
Only toggle the "aria-expanded" attribute on click on the "Dropdown Icon" and on the first click of menu item which got the sub item.
Describe alternatives you've considered
No response
Additional context
This is needed because if a user clicks on a sub menu item and the page takes a while to load due to a poor internal connection or similar, the sub menu is closed, but as soon as the page loads, the "close" function is canceled and the user is shown a broken menu for a short time. See screenshot
All reactions