sweet-alert2-rails icon indicating copy to clipboard operation
sweet-alert2-rails copied to clipboard

callback not working on ok button press

Open Faisal-nfl opened this issue 6 years ago • 1 comments

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

Faisal-nfl avatar Feb 09 '19 17:02 Faisal-nfl

I just noticed the same issue - any idea when it will be fixed?

amielouwho avatar Mar 17 '19 02:03 amielouwho