Make WordPress Core

Opened 2 years ago

Closed 4 weeks ago

#57445 closed defect (bug) (reported-upstream)

Twenty Twenty-Three: When adding a sub-menu set to "open on click" the parent menu item is not clickable

Reported by: zoonini's profile zoonini Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.1.1
Component: Editor Keywords:
Focuses: Cc:

Description

Summary

When adding a sub-menu to Twenty Twenty-Three via the Site Editor, the parent menu item is not clickable.

To Replicate

  1. At Appearance > Editor, add a navigation block to the Header template part
  2. Add a sub-menu to one of the top-level menu items
  3. In the Navigation block's Submenu settings on the right, select "Open on click"
  4. View the site on the front end and try to click the parent item above the sub-menu

Result

The top-level item that has the sub-menu under it is no no longer clickable, so it can never be reached. Clicking the parent item only opens the sub-menu.

Expected

You should be able to click the parent item above a sub-menu.

Note that this works correctly in Twenty Twenty-Two which is why I'm reporting this here instead of in the Gutenberg GitHub repo.

Testing Conditions

No active plugins
WordPress 6.1.1
Local install

User Report

https://wordpress.org/support/topic/stop-mouse-over-on-submenu-item/

Attachments (1)

onclick-bug-tt3.mov (1.2 MB) - added by zoonini 2 years ago.
TT3 bug - on click submenu

Download all attachments as: .zip

Change History (5)

@zoonini
2 years ago

TT3 bug - on click submenu

#1 @poena
2 years ago

  • Component changed from Bundled Theme to Editor

Hi!

This is the intentional design or behavior of the navigation block.
When "Open on click" is selected, the parent menu item becomes a button that only expands the submenu.

It is not a bug in Twenty Twenty-Three since this navigation block option behaves this way in all themes.

That doesn't mean there is not room for improving the block or the documentation, -this behavior might still be unexpected to users. Do you want to open a new feature request in the Gutenberg GitHub repository?

#2 @zoonini
2 years ago

Thank you for having a look, @poena

It is not a bug in Twenty Twenty-Three since this navigation block option behaves this way in all themes.

You are right indeed. I had tested in Twenty Twenty-Two and thought it worked differently there, but I must have not toggled on the "on click" submenu option as I thought I had, because I retested now and you are quite correct.

Do you want to open a new feature request in the Gutenberg GitHub repository?

Yes, I will go ahead and do that and will link to it from here once it's done. Thanks again!

#4 @poena
4 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi,
I am closing this ticket as "reported upstream".

Note: See TracTickets for help on using tickets.