You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs gives the below details about disableClose option in sidenav:
"Whether the sidenav can be closed with the escape key or not."
Usually clicking backdrop closes the sidenav, but when this option (disableClose) is set to true, it also disables the closing of SideNav using backdrop.
There could be cases where we would like to disable closing of Sidenav using Esc key but would like it to be closed when user clicks backdrop. Therefore, we should have two separate options disableCloseEsc and disableCloseBackdrop.
The dialogs have a similar behavior (but in this case it makes sense to have just one closing option). Maybe they're reusing the same libs to deal with this closing feature.
The general consensus with dialogs has been that disableClose will disable all methods of closing, and that the user should subscribe to the closing mechanisms individually to manually close the dialog.
For the sidenav, backdrop clicks are already exposed as events, so it seems like the following should happen:
The jsdoc comment should be updated to something like "Whether the user can close the sidenav with the escape key or clicking on the backdrop"
The escape keydown event exposed as an event or observable
Activity
julianobrasil commentedon Aug 12, 2017
The dialogs have a similar behavior (but in this case it makes sense to have just one closing option). Maybe they're reusing the same libs to deal with this closing feature.
willshowell commentedon Aug 12, 2017
The general consensus with dialogs has been that
disableClosewill disable all methods of closing, and that the user should subscribe to the closing mechanisms individually to manually close the dialog.For the sidenav, backdrop clicks are already exposed as events, so it seems like the following should happen:
"Whether the user can close the sidenav with the escape key or clicking on the backdrop"angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.