-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
It should be possible to use the MatMenuTrigger.menuOpened
event to load new menu data when a menu is opened.
What is the current behavior?
If menu data changes after Mat-Menu is opened the menu loses focus and the user can't navigate the menu with arrow keys unless they tab back to the menu.
What are the steps to reproduce?
https://stackblitz.com/edit/mat-menu-on-open-update-issue
What is the use-case or motivation for changing an existing behavior?
Sometimes it is desirable to load menu data only when the user clicks the menu to avoid unnecessary network requests. Doing this should not break accessibility.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material: 7.0.3
Angular: 7.0.3
kasperlauge and MaksymKurylko
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu