Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation block's "Open on click" mode bug on nested submenus #60738

Open
daviedR opened this issue Apr 15, 2024 · 0 comments
Open

Navigation block's "Open on click" mode bug on nested submenus #60738

daviedR opened this issue Apr 15, 2024 · 0 comments
Labels
[Block] Navigation Affects the Navigation Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended

Comments

@daviedR
Copy link
Contributor

daviedR commented Apr 15, 2024

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

  1. Edit (or create) a page.
  2. Create a core/navigation block.
  3. Enable this option: Setting (tab) > Display (panel) > Submenus > "Open on click".
  4. 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
  1. Save the page and view the page.
  2. Click the Top Level Menu Item and then click the 1. Submenu Item, and then click the 2. Submenu Item.
  3. The whole menu will be closed, which is not the expected behavior. The menu should still be opened with the 1. Submenu Item closed and 2. Submenu Item opened.

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

@daviedR daviedR added the [Type] Bug An existing feature does not function as intended label Apr 15, 2024
@jordesign jordesign added Needs Testing Needs further testing to be confirmed. [Block] Navigation Affects the Navigation Block labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants