sweetalert2-react icon indicating copy to clipboard operation
sweetalert2-react copied to clipboard

Critical error on call method onCancel

Open douglasscriptore opened this issue 5 years ago • 13 comments

By calling the onCacel function I am getting the return from the onConfirm function! This is very critical, could it solve?

douglasscriptore avatar Aug 26 '19 18:08 douglasscriptore

Tried to fix the issue but the script looks fine. It seems like the compiled script in current version is outdated. If you try to copy the src folder to your project and import it. It will work as expected.

rikimaru09 avatar Aug 29 '19 05:08 rikimaru09

I'm experiencing the same issue with NPM version 0.8.3. Perhaps related to #23?

jaysella avatar Oct 13 '19 22:10 jaysella

@rikimaru09 are you saying that NPM version 0.8.3 works as expected as long as you import the raw source rather than use the compiled script? Will the compiled script be updated soon?

mkurtzsd avatar Nov 11 '19 18:11 mkurtzsd

The problem still persist. This is absolutely nightmare. A basic function is broken like this!!!

scchess avatar Nov 15 '19 08:11 scchess

There is currently no fix it. I had to import the source code into my project and call it from there. The version on NPM is totally unstable.

scchess avatar Nov 15 '19 08:11 scchess

Same problem

CrisGarcis avatar Nov 23 '19 16:11 CrisGarcis

Same here

oliemansm avatar Dec 05 '19 13:12 oliemansm

I switched to https://github.com/kessejones/react-sweetalert2

oliemansm avatar Dec 05 '19 13:12 oliemansm

OMG

NoobTW avatar Dec 22 '19 15:12 NoobTW

If you use it - just do a PR, please

alex-shamshurin avatar Dec 23 '19 06:12 alex-shamshurin

Hi, there, it's still not fixed...

akabynga avatar Feb 02 '21 19:02 akabynga

Any solution?

joaco1826 avatar Apr 30 '21 03:04 joaco1826

Looks like https://github.com/alex-shamshurin/sweetalert2-react/commit/0138725cf79bac8a274b49b434be7ae19b2cfbe5 changes were never published, would be possible to get a new version with that fix?

santiagodoldan avatar Jun 27 '21 16:06 santiagodoldan