Skip to content

bug(CdkMenu): Opening submenu requires two clicks on touch display (Chrome) #27508

@diegoadolf

Description

@diegoadolf

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

  1. using a touch display or touch emulation on Chrome, click on the parent menu item "File".
  2. click on the submenu item "New"
  3. you will see that the menu item is briefly animated, but the menu does not open
  4. 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))

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/menu

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions