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

Add confirmAlert2() to support multiple popups #72

Open dery168 opened 2 years ago

dery168 commented 2 years ago

This is to handle multiple ConfirmAlert initiated by some asynchronized activities, e.g. timer, fetch/xhr, callback.

Using current confirmAlert(), the new popup simply override the old popup before user provides input.

This new confirmAlert() will put the new popup into a waiting queue to display after the current popup is processed by user.