-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block
Description
Description
The "Open on click" mode in the Navigation block fails to keep the submenu when switching from an opened submenu to the other submenu.
Please watch the screen recording.
Step-by-step reproduction instructions
- Edit (or create) a page.
- Create a
core/navigationblock. - Enable this option: Setting (tab) > Display (panel) > Submenus > "Open on click".
- Populate menu items as follows:
Top Level Menu Item
1. Submenu item
1.1. Nested Submenu Item
1.2. Nested Submenu Item
2. Submenu item
2.1. Nested Submenu Item
2.2. Nested Submenu Item
- Save the page and view the page.
- Click the
Top Level Menu Itemand then click the1. Submenu Item, and then click the2. Submenu Item. - The whole menu will be closed, which is not the expected behavior. The menu should still be opened with the
1. Submenu Itemclosed and2. Submenu Itemopened.
Screenshots, screen recording, code snippet
navigation--open-on-click-bug.mp4
Environment info
- WordPress 6.5.2
- Theme: Twenty Twenty Fourteen
- Gutenberg 18.1.0 (bug also occurs without Gutenberg)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block