GA-MO / react-confirm-alert

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

JS error "TypeError: Cannot read property 'parentNode' of null" #58

Closed annmirosh closed 3 years ago

annmirosh commented 4 years ago

If the onClose method is called on the unmounted alert, this error occurred: "TypeError: Cannot read property 'parentNode' of null"

I added an extra check to fix this error.