-
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
sidenav (over mode) disable backdrop click to close #1213
Comments
You could use 'pointer-events: none' on the sidenav layout. Just make sure you add 'pointer-events: initial' to any child objects that you want to click on. |
thanks this workaround will help me , many thanks!!! it will be nice if there is option to disable closing sidenav when clicking on backdrop thanks |
@jelbourn how about if we add something like this?
that way its easy to close or do nothing, but you can still do custom stuff if you like |
@mmalerba we could make it align with the overlay and dialog. Overlay exposes a |
That seems a little more awkward since you have to set two properties, one to stop the default action and one to supply your own. can we make the overlay work like my proposal instead? :p |
The overlay just exposes the observable to let the component do whatever it wants. The dialog doesn't expose the observable and just has |
#1427 is requesting a callback |
I have a similar error (same to @istiti) when I close the sidenav either by :
Am I the only one (is there something wrong with my code) ? Or is it something known ? Thanks |
This has been implemented via the |
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. |
Proposal:
Actually when we use sidenav in over mode, we can't disable closing sidenav when clicking on backdrop, any enhancement in mind ?
The text was updated successfully, but these errors were encountered: