Skip to content

Navigation: Prevent submenus from auto-opening on focus in overlay mode. - #15071

Closed
dhrupo wants to merge 1 commit into
WordPress:trunkfrom
dhrupo:65961-nav-mobile-submenu
Closed

dhrupo wants to merge 1 commit into
WordPress:trunkfrom
dhrupo:65961-nav-mobile-submenu

Conversation

@dhrupo

@dhrupo dhrupo commented Oct 28, 2026

Copy link
Copy Markdown

Avoid opening all submenus simultaneously when focusing in mobile overlay
navigation. Check context type in openMenuOnFocus() and only apply
focus-open behavior for non-overlay contexts. Also only attach the focus
handler when submenu visibility is not hover-based.

Trac ticket: https://core.trac.wordpress.org/ticket/65961

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

Core Committers: Use this line as a base for the props when committing in SVN:

Props dhrupo.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Avoid opening all submenus simultaneously when focusing in mobile overlay
navigation by checking context type and only applying focus-open behavior
when appropriate.

Trac ticket: 65961
@dhrupo
dhrupo force-pushed the 65961-nav-mobile-submenu branch from 5e49f18 to fdd629b Compare October 30, 2026 19:40
@dhrupo

dhrupo commented Oct 31, 2026

Copy link
Copy Markdown
Author

Closing: this isn't a 7.1 regression, and both checks in this patch were wrong. Details: https://core.trac.wordpress.org/ticket/65961#comment:4

@dhrupo dhrupo closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant