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.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Description
The core/navigation block with submenu has a toggle for
Submenus: Open on clickoption.The option can be set and saved into a pattern, template part.
issue: if the navigation includes a
core/page-listand the submenu item is then removed the toggle is no londer displayed to unset the option.Step-by-step reproduction instructions
<!-- 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.
Please confirm that you have tested with all plugins deactivated except Gutenberg.