-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with changing urls and windows with pending modifications #247
Comments
I think this is something you can achieve in your code. Wherever you trigger the action to switch pages, why not have a modal or dialog show up first before you call Navigator.push |
Thanks @ignertic, |
What are the ramifications if you try to achieve this with some javascript ? |
I don't know, I am not an expert in javascript. :( |
Hello,
Suppose I have a window with a form, that form has been modified, so the modifications are pending to be saved.
Now I open another window changing the url and therefore the current one (which has the modifications) closes, how can I put an alert message to prevent or accept navigating to the new url and accept or cancel the pending modifications in the current form?
I have tried to do it through the router.define handler, but it is not async.
Is there a standardized method to control this type of situation?
Thanks for your help.
Regards,
Jose
The text was updated successfully, but these errors were encountered: