-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The core/navigation block with submenu has a toggle for Submenus: Open on click option.
The option can be set and saved into a pattern, template part.
<!-- wp:navigation {"openSubmenusOnClick":true ... } -->
issue: if the navigation includes a core/page-list and the submenu item is then removed the toggle is no londer displayed to unset the option.
Step-by-step reproduction instructions
- insert a new navigation block
- insert a page-list item
- insert a menu item
- convert the menu-item to a submenu
- insert a submenu item
- select the navigation block, turn on setting "open on click"
- save and view page to confirm the on-click is working as expected.
- In the site editor
- select the navigation block
- remove all menu items except the page-list
- The navigation block setting "open on-click" toggle is no longer visible
- switch to code edit mode - the setting is still visible



<!-- wp:navigation {"openSubmenusOnClick":true ... } -->
Screenshots, screen recording, code snippet
Environment info
Wordpress Version 6.6.2
Theme: TT4
Gutenberg: Version 19.2.0
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended

