-
Notifications
You must be signed in to change notification settings - Fork 6.8k
md-menu click catcher is fixed to a container. #1499
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
Another issue related to the click catcher element is when a menu item has a When this happens the click catcher is not removed, if the click catcher is not inside a router outlet (above it) the whole app becomes non responsive (can't click) |
The issue is really using a backdrop inside the menu content but creating the dom element inside the overlay container. The right solution is to use the overlay's backdrop and being able to control the backdrop background color |
The current behavior is just temporary until menu uses the Overlay's backdrop. |
Closed via #1534 |
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. |
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
bug
What is the expected behavior?
The click catcher for md-menu should be applied on the whole screen.
What is the current behavior?
The click catcher element is located within the menu directive this means that in some situations the fixed viewport is not the body but some element in the DOM tree between the body and the click catcher.
This can happen when an element (ancestor of css catcher) applies CSS transform. When this happen the click catcher will be bound to the element's view port and not the body.
A great example is the
SideNav
, the sidenav's content element applies atransform: translate3d(0px, 0px, 0px);
and when opened themargin-left
CSS property reduce's the content size thus reduces the click catcher size, in this scenario clicks over the sidebar navigation are will not trigger a close event. (hovers will works as well... etc)The menu is rendered in the the overlay container area but its not using the overlay backdrop, I guess since you can't control the styling of the backdrop to make it transparent...
The text was updated successfully, but these errors were encountered: