-
Notifications
You must be signed in to change notification settings - Fork 500
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
when one swal is closing, if another swal call is made, it is ignored #16
Comments
One can workaround this by using a setTimeout to wait for the first one to close but it would be nice if the call was not ignored and was somehow queued until the first one closed. |
That's a bit confusing on what you are saying here.. an example on JSFiddle or my latest favorite JS Bin would be the best.. |
When doing so: swal({
title: 'Whatever',
text: 'My example text here',
type: 'info',
closeOnConfirm: false,
}, function(){
swal("Success", "Something was successful", "success");
}); After clicking 'OK' the callback modal immediately shows and closes within seconds. For anyone having this issue, you need to make sure you set closeOnConfirm to false as I've added in the example above. |
iam run in this type.. its working or nor |
using isConfirm will not suffice in this case because there is more complex logic through multiple objects before the second call is made
The text was updated successfully, but these errors were encountered: