sweet-alert2-rails
sweet-alert2-rails copied to clipboard
callback not working on ok button press
I need to catch "OK" press event
swal({
title: "Are you sure?",
text: "This will delete <%=@registrants_count%> register users",
type: "warning",
showCancelButton: true,
confirmButtonColor: '#DD6B55',
confirmButtonText: 'Yes, I am sure!',
cancelButtonText: "No, cancel it!"
},
function(isConfirm){
if (isConfirm){
alert("ok");
}
});
Its used to work fine in last gem but now its working
I just noticed the same issue - any idea when it will be fixed?