GA-MO / react-confirm-alert

react component confirm dialog.
https://ga-mo.github.io/react-confirm-alert/demo/
MIT License
272 stars 105 forks source link

onConfirm and onCancel doesn't work #27

Closed ioshwred closed 5 years ago

ioshwred commented 5 years ago

confirm and cancel doesn't work, but cancel closes the confirm dialog but won't do even an alert()

ghost commented 5 years ago

For me it's working:

confirmAlert({
      title: "Title",
      message: "Some message,
      buttons: [
        {
          label: trans.no
        },
        {
          label: trans.yes,
          onClick: () => handleClickYes()
        }
      ]
    });