Sweetalert: allowOutsideClick is ignored

Created on 17 Apr 2015  路  5Comments  路  Source: t4t5/sweetalert

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.

Most helpful comment

Fixed in 2.0 using closeOnClickOutside: false.

All 5 comments

+1, I have the same issue.

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

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

Fixed in 2.0 using closeOnClickOutside: false.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daftspunk picture daftspunk  路  4Comments

fracz picture fracz  路  4Comments

mateuszjarzewski picture mateuszjarzewski  路  4Comments

waldyrious picture waldyrious  路  5Comments

adiwithadidas picture adiwithadidas  路  4Comments