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
We currently listen for `keydown` events on the sidenav so that we know when to close it, however in `side` mode we don't trap focus inside the sidenav which means that unless the user goes into the sidenav manually, the escape listener won't work. These changes fix the issue by listening to keyboard events at the `document` level.
Fixesangular#17965.
We decided against fixing this, because the fix would depend on how the sidenav is used in the application. See the discussion in #17967. For your case you should be able to fix it by adding adding another keyboard listener and using the API to close it.
Reproduction
Steps to reproduce:
Expected Behavior
What behavior were you expecting to see?
I was expecting the sidenav to close.
Actual Behavior
Sidenav does not close.
Environment
Workaround
There seems to be 2 workarounds. Related SO question.
@HostListener
on the esc keyThe text was updated successfully, but these errors were encountered: