Can you add a cool (and simple) feature for the UX : the window with the escape key ?
There's already functionality in there to close with the scape key - it's only allowed when there's a cancel button though. Matches the behaviour of native alert/confirm.
I accept Peterjosling Answer. Thanks
I believe this is a duplicate of #131 (for which I've opened a PR to fix).
It seems like this repo is inactive now, I fixed this and added some additional features to sweetalert2.
This issue has been fixed, as noted in #132.
This has now been added as a feature through allowEscapeKey (true by default). Thanks for your help guys!
Old but goooood :)
Most helpful comment
This has now been added as a feature through
allowEscapeKey(true by default). Thanks for your help guys!