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

sastrahost picture sastrahost  ·  5Comments

adiwithadidas picture adiwithadidas  ·  4Comments

krishnamraju picture krishnamraju  ·  3Comments

VoxelNaut picture VoxelNaut  ·  6Comments

Lusitaniae picture Lusitaniae  ·  4Comments