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
SwAl doesn't disappear on back navigation #231
Comments
Im guessing here. If you show us some code, I might be able to hep more. for sweetAlert to hide, the page needs to refresh. In a Cordova or JQuery when you press back, the page doesn't refresh, it just changes state, so trying putting an event handler on the back-button/page-change using phonegap and hide sweet alert. |
I found a workaround to this. had to make few modification to swal library too.
// Closes/Cancel any open sweet alerts
//Check whether the SWAL is open or not.
|
You can check reference code here -- #236 |
As the pull request says, just use |
just use this script , its working for me: header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); |
Using SwAl in a Jquery Mobile app running in a cordova shell. It works just great but for one small issue.
SwAl is up and the user presses the back button on his Android app. Everything in the background goes one step back but no SwAl - SwAl just stays there for some reason I am not able to figure out.
How do I get SwAl to disappear when an user navigates back on his phone?
The text was updated successfully, but these errors were encountered: