Browser back button handling to close dialogs #14283
Unanswered
CheIIau
asked this question in
CLI - PWA mode
Replies: 1 comment
-
need the same functionality! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello, I think it will be useful if quasar had a feature to close dialogs and popups on back button in browser. For now i have my own logic in components to do this, but it seems quite ugly.
Is there a way to add some directive on dialog like 'v-back-button-close' or maybe some other implementation of this like $q.dialog({ back:true, ... }) or some global flag for this in quasar.config? I see it like this: we check if there any open dialogs in app, and if so, prevent navigation and close them. if there none - navigate to previous route.
Or this feature cannot be implemented and quasar can't handle user navigation like this?
P.S. I know 3 years ago user asked a similar question, but there was no answer 🤷
Beta Was this translation helpful? Give feedback.
All reactions