Skip to content

bug(cdk/menu): cdk menu is not working properly when use keyboard #26033

Closed
@zizifn

Description

@zizifn

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

CDK menu is not working properly when using keyboard.

  1. "Enter" can't open the menu (actually it's open and closed very quick under debug )
  2. "space" open menu, after select one item, menu not close

Reproduction

Steps to reproduce:

  1. https://material.angular.io/cdk/menu/examples#cdk-menu-standalone-menu
  2. and check below GIF

menu-issue

Expected Behavior

  1. "Enter" can open the menu
  2. "space" open menu, after selecting one item, menu close

Actual Behavior

  1. "Enter" can't open the menu (actually it's open and closed very quickly if use debug )
  2. "space" open menu, after selecting one item, menu not close

Environment

  • Angular: 15.0.0
  • CDK/Material: 15.0.0
  • 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 urgentarea: cdk/menu

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions