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
I've got multiple dialogs in my application. On mobile environment users tend to click "back" button when they want to close dialog. Very bad when user just want to use login/register dialog. This is causing closing the whole app and bad user experience. "Uhm website is closed now, but I wanted only to log in - I quit!"
Proposed solution
Implementing default v-dialog closing behaviour for browser's back button. This will solve this problem forever.
suggested solution: make fake browser history:
while opening dialog
window.history.pushState({}, );
window.addEventListener("popstate", event => {
//close your dialog here and remove this listener
});
The text was updated successfully, but these errors were encountered:
Problem to solve
I've got multiple dialogs in my application. On mobile environment users tend to click "back" button when they want to close dialog. Very bad when user just want to use login/register dialog. This is causing closing the whole app and bad user experience. "Uhm website is closed now, but I wanted only to log in - I quit!"
Proposed solution
Implementing default v-dialog closing behaviour for browser's back button. This will solve this problem forever.
suggested solution: make fake browser history:
while opening dialog
window.history.pushState({}, );
window.addEventListener("popstate", event => {
//close your dialog here and remove this listener
});
The text was updated successfully, but these errors were encountered: