Skip to content

Menu with disabled options doesn't close on ESC #16565

Closed
@RandomNonameDude

Description

@RandomNonameDude

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-y1wytp?file=app/menu-icons-example.html

Steps to reproduce:

  1. Create menu with disabled options only
  2. Open it
  3. Try pressing ESC key

Expected Behavior

The menu should close after pressing ESC key, same as it does when it contains at least one non-disabled option

Actual Behavior

The menu does not close after pressing ESC key

Environment

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

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