Drawer stays open on page change - NzDrawerService missing closeAll() method? #9286
Unanswered
zanzlender
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, @zanzlender , |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, as the title says I've run into an edge case in my app. To not go into too much details, but I have a mechanism that forcibly logs the user out and redirects them to the login page. The problem is that if this happens while the drawer is open, the drawer will stay open even if the user is on the login page where the drawer should obviously not be shown.
The NzModalService has a closeAll() method, which works for this scenario, but why isn't there a NzDrawerService .closeAll() method?
Anyone encountered this and found some good solution?
Would it solve it if the NzModule is not imported in the root module?
I also tried the following:
Beta Was this translation helpful? Give feedback.
All reactions