Skip to content

bug(MatMenu): resetActiveItem() function doesn't work #20965

Closed
@gigitux

Description

@gigitux

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-vq8r9z?file=src%2Fapp%2Fmenu-overview-example.ts

Steps to reproduce:

  1. Click on Menu
  2. Press the down directional arrow

Expected Behavior

According to docs with resetActiveItem, when the menu is opened, allowing the user to start from the first option when pressing the down arrow.

Actual Behavior

When press the down direction arrow, the second option is focused

Environment

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

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