Thanks to @dchekanov who raised the issue #896, now it's possible to prevent a dialog from being closed by returning false
in the preConfirm
parameter function.
Example:
preConfirm: function() {
if (!confirm('Are you sure?')) {
return false;
}
// proceed otherwise
}
or even shorter with ES6:
preConfirm: () => confirm('Are you sure?')
jsfiddle: https://jsfiddle.net/ad3quksn/386/