-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus drops to body if a menu item is removed while focused #14028
Comments
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Any ideas when this fix will be merged in? Or a workaround to use in the meantime? |
Still experiencing this issue, has it been resolved? |
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Looks like there is no fix here up to now. |
@crisbeto this should be fixed as of v9 when we switched menu to use |
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes #14028.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes the user's focus being lost if the active item is destroyed while a menu is open. Fixes angular#14028.
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
The text was updated successfully, but these errors were encountered: