Sorry if I am missing something from the documentation but I can't find anyway to prevent a dialog from closing in SweetAlert 2, these won't work:
await Swal.fire({
html: diagHtml,
showCancelButton: true,
willClose: (el) => {
console.log(el);
if (someLogic()) {
event.preventDefault();
return false;
}
},
});
Is there a way to keep the dialog stay, preferably with async?