Skip to content
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

allowOutsideClick is ignored #334

Closed
Untit1ed opened this issue Apr 17, 2015 · 5 comments
Closed

allowOutsideClick is ignored #334

Untit1ed opened this issue Apr 17, 2015 · 5 comments

Comments

@Untit1ed
Copy link

While SweetAlert animation is playing clicking outside will close the pop-up even if allowOutsideClick is set to false.

A quick workaround would be to set closeOnCancel to false. But of course it is not going to work for cases when you have a cancel button in your alert.

@Nimdis
Copy link

Nimdis commented May 14, 2015

+1, I have the same issue.

@TomTasche
Copy link

i think https://github.com/t4t5/sweetalert/pull/327/files should fix your problem

@thejae
Copy link

thejae commented Jun 18, 2015

Without @TomTasche pull request. I noticed it'll work if you set on closeOnConfirm and closeOnCancel to false.

@t4t5
Copy link
Owner

t4t5 commented Sep 8, 2017

Fixed in 2.0 using closeOnClickOutside: false.

@t4t5 t4t5 closed this as completed Sep 8, 2017
@SanaSalmanzadeh
Copy link

you must change
allowOutsideClick: "false",
to
allowOutsideClick: false,
it does not need " if you delete it is work correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants