Closed
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