Skip to content

bug(CdkMenu): Context Menu closes after opening when using ctrl+ left click in Safari #27832

Closed
@varzaman

Description

@varzaman

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 using Safari, the CDK Menu upon being triggered with control + left click opens, and then automatically closes on mouse up.

Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-kxocsn?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:

  1. Open the StackBlitz link in Safari
  2. Right click in the application screen. A context menu will show up. Close it. (This is just to verify you get the context menu).
  3. Open up the context menu using ctrl + left click.
  4. Observe the behavior.

Expected Behavior

  • Context Menu opens up the same way as using right click.
  • Context Menu gets dismissed when the context menu is clicked off of.

Actual Behavior

  • Context Menu opens, and automatically closes on mouse up

Environment

  • Angular: 16.2.2
  • CDK/Material: 16.2.1
  • Browser(s): Safari 16.6
  • Operating System (e.g. Windows, macOS, Ubuntu): MAC OS Ventura 13.5.2

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