Skip to content

bug(CdkMenu): Pressing Right while on an open submenu skips an item in the parent #31678

@toxik

Description

@toxik

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

Having a CdkMenuBar with 3 elements, the first of which has a submenu, navigation is wrong when pressing right arrow (left arrow works fine)

Reproduction

StackBlitz link: https://stackblitz.com/edit/gdabapzb?file=src%2Fexample%2Fcdk-menu-menubar-example.html
Steps to reproduce:

  1. open the first menu
  2. press right arrow

Expected Behavior

focus should move to second item

Actual Behavior

focus moves to third item

Environment

  • Angular: 20.1
  • CDK/Material: 20.1
  • Browser(s): Chrome latest
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS
Screen.Recording.2025-08-12.at.02.39.21.mp4

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P2The issue is important to a large percentage of users, with a workaroundarea: cdk/menu

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions