I like the simplicity of javascript confirm so that I can do this:
if(!confirm("are you sure?"))
return;
in sweetalert you have to nest your true code within a then promise function.
Is there a way to have sweetalert return true/false the same way it happens in JS confirm?
from How to have sweetalert return true/false for confirm without promise?
No comments:
Post a Comment