-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Nested menus bug: parent menu-item left focused after click (onPush) #6838
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
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 5, 2017
Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes angular#6838.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 5, 2017
Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes angular#6838.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 11, 2017
Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes angular#6838.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 12, 2017
Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes angular#6838.
mmalerba
pushed a commit
that referenced
this issue
Sep 12, 2017
* fix(menu): nested trigger staying highlighted after click Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes #6838. * fix: firefox tests crashing
josephperrott
pushed a commit
to josephperrott/components
that referenced
this issue
Sep 15, 2017
* fix(menu): nested trigger staying highlighted after click Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item. Fixes angular#6838. * fix: firefox tests crashing
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
Bug: When using onPush strategy, in nested menus, the parent is left focused after click even after mouse is not hovering anymore and its submenu is closed.
What is the expected behavior?
Items should be only focused when their submenu is open.
What is the current behavior?
In the following gif, I first hover over items and submenus open and close normally. Then I click on Item 2, and hover on Item 3. Item 2 is left focused even if the submenu has been closed (after mouseleave). Same thing is visible for Item 3: when clicked, it stays focused until another item is clicked.
What are the steps to reproduce?
The given plunkr template (https://goo.gl/DlHd6U) did not load but instead was giving me some 404 errors for steppers (any idea why?). But it's easy to reproduce with this html AND using onPush in ts:
What is the use-case or motivation for changing an existing behavior?
This is a bug and should be fixed, imho.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Tested with Chrome 60 on Linux.
The text was updated successfully, but these errors were encountered: