Skip to content

matMenuContent is not closing the overlay when all menu are disabled #17400

@dhrn

Description

@dhrn

Reproduction

https://stackblitz.com/edit/angular-mat-disable-gvwpv1

https://stackblitz.com/edit/angular-mat-disable-dynamic-menu

Steps to reproduce:

  1. open stackblitz app
  2. click the menu
  3. press ESC

Expected Behavior

The menu should be closed

What behavior were you expecting to see?

The menu should still in the open state

Actual Behavior

What behavior did you actually see?

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions