Skip to content

[menu-item]: Clicking on disabled menu-item closes the menu  #19173

Closed
@gauravsoni119

Description

@gauravsoni119

Reproduction

https://material.angular.io/components/menu/examples

Steps to reproduce:

  1. Click on the disabled mat-menu item.

Expected Behavior

The menu should not be closed if the menu-item is disabled
I believe below is the code for this but still, the menu gets closed
https://github.com/angular/components/blob/master/src/material/menu/menu-item.ts#L145-L146

Actual Behavior

The menu gets closed when we click.

  • Angular:
  • CDK/Material: latest
  • Browser(s): Google Chrome
  • Operating System (Ubuntu):

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions