Skip to content

Open submenus on tap with the default submenu trigger - #43363

Open
lazerg wants to merge 2 commits into
twbs:mainfrom
lazerg:fix/issue-43361-submenu-touch
Open

lazerg wants to merge 2 commits into
twbs:mainfrom
lazerg:fix/issue-43361-submenu-touch

Conversation

@lazerg

@lazerg lazerg commented Nov 13, 2026 •

Copy link
Copy Markdown
  • Ignore the hover path in _onSubmenuTriggerEnter() with submenuTrigger: 'both' when the last pointer over the menu is not a mouse. A tap fires an emulated mouseenter that opened the submenu, and then the click closed it again.
  • Record the pointer type from pointerover, which fires before the emulated mouse events. Mouse hover still opens submenus, also on devices with touch and mouse.
  • Add tests for a tap with submenuTrigger: 'both' and 'hover'.

Fixes #43361

@lazerg
lazerg requested a review from a team as a code owner November 13, 2026 08:37
@julien-deramond julien-deramond added v6 v6, the main branch bug Something does not work as documented js JavaScript or TypeScript sources and plugins labels Nov 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something does not work as documented js JavaScript or TypeScript sources and plugins v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v6: Menu: submenus can't be opened on touch devices with default submenuTrigger: 'both'

2 participants