prevent sweetalert to be closed on clicking outside the popup window code example Example: how to stop user from clicking outside sweetalert 2 allowOutsideClick: false