I am using Sweet Alert for a popup on my product view in an E-commerce Application with two buttons: one for going on cart View and another for reloading the vi
For SweetAlert 2:
allowOutsideClick: false
and version 3 and some below version 2:
closeOnClickOutside: false