Skip to content

Navigation open submenu on click unavailable for page-list #65513

@djcowan

Description

@djcowan

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

  1. insert a new navigation block
  2. insert a page-list item
  3. insert a menu item
  4. convert the menu-item to a submenu
  5. insert a submenu item
  6. select the navigation block, turn on setting "open on click"
  7. save and view page to confirm the on-click is working as expected.

  1. In the site editor
  2. select the navigation block
  3. remove all menu items except the page-list
  4. The navigation block setting "open on-click" toggle is no longer visible
  5. switch to code edit mode - the setting is still visible

1 vanilla - Screenshot 2024-09-20 163206
2 vanilla - Screenshot 2024-09-20 163303
3 vanilla Screenshot 2024-09-20 163446
<!-- wp:navigation {"openSubmenusOnClick":true ... } -->

Screenshots, screen recording, code snippet

Screenshot 2024-09-20 161735
2 Screenshot 2024-09-20 161735

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

Metadata

Metadata

Assignees

Labels

[Block] NavigationAffects the Navigation Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions