-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When opening a submenu created using CdkMenu via touch interaction on a touch display, the first click on the CdkMenuItem does not open the corresponding submenu. Only the second click opens the submenu.
This can be reproduced on Chrome (v115 - latest as of 2023-07-25) on both macOs and Windows 10.
Reproduction
Example on the Angular CDK website: https://material.angular.io/cdk/menu/examples#cdk-menu-menubar
- using a touch display or touch emulation on Chrome, click on the parent menu item "File".
- click on the submenu item "New"
- you will see that the menu item is briefly animated, but the menu does not open
- click the "New" menu item again and the submenu will open.
Issue can be reproduced on the Angular CDK website or the StackBlitz link provided in the example
Video showing the bug:
https://github.com/angular/components/assets/6468359/0b9dff7a-68e1-49cc-96fd-0d887e4e704c
Expected Behavior
Only one click should be necessary to open the submenu using touch interaction on a touch display.
Actual Behavior
Two clicks are necessary to open the submenu.
Environment
- Angular: 16.1.1
- CDK/Material: 16.1.5
- Browser(s): Chrome Version 115.0.5790.102 (Official Build) (x86_64) (latest as of 2023-07-25)
- Operating System (e.g. Windows, macOS, Ubuntu): Microsoft Windows 10 Pro (Version 10.0.19045 Build 19045), macOS Monterey (Version 12.6.3 (21G419))