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
uncaught exception: cancel #635
Comments
when click close icon, it show error too, |
Should be posted here: https://limonte.github.io/sweetalert2/ |
In case someone comes here and gets stuck (because At the end of the Every promise function needs a failure callback. |
@eminx you saved my day :) |
@eminx me too!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error will show when i click "cancel" button in Sweetalert2
swal({ title: menu_title, text: title, input: "text", showCancelButton: true, animation: "slide-from-top", showLoaderOnConfirm: true, inputPlaceholder: lang.write_your_comment, preConfirm: function(inputValue) { return new Promise(function(resolve, reject) { resolve('ok'); }); }) }, allowOutsideClick: false }).then(function(result){ var res = $.parseJSON(result); if(res.status){ swal({ title: lang.thankyou+"!", text: lang.your_feedback_sent, type: "success" }).then(function(confirm){ location.reload(); }); } else{ swal({ title: lang.sorry+"!", text: res.message, type: "warning" }); } });
The text was updated successfully, but these errors were encountered: