Closed herzzanu closed 6 years ago
You can use like this;
.then((confirm)=> { console.log(confirm); },(dismiss)=>{ console.log(dismiss); });
it's normal, take a look at sweet alert README file and you will see it, I prefer writing like this when I don't care about the cancel button.
promise.then((confirm)=> {
console.log(confirm);
}).catch(swal.noop);
@herzzanu can you close it?
Closing this as the latest development version of this package upgrades to SweetAlert 7, for which this isn't an issue.
I'm getting the following errors when clicking the cancel button or the overlay