Skip to content

Menu items are not accessible via keyboard when using ng-content #14874

Closed
@haperr

Description

@haperr

What is the expected behavior?

Menu items should be accessible via the keyboard.

What is the current behavior?

Menu items are not accessible via the keyboard after menu is opened.

What are the steps to reproduce?

Expected behavior (without using ng-content):
https://stackblitz.com/edit/mat-menu-keyboard-accessibility?file=src/dropdown/dropdown.component.html

Actual behavior (using ng-content):
https://stackblitz.com/edit/mat-menu-keyboard-accessibility-bug?file=src/dropdown/dropdown.component.html

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 7.2.1
Material: 7.2.1
TypeScript: 3.1.1
Observed in both Chrome and Edge on Windows.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions