notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
635 stars 55 forks source link

[BUG] - confirm stack #74

Closed smisyuk4 closed 1 year ago

smisyuk4 commented 1 year ago

Describe the error

Two confirmations in a row do not work

To play

Steps to reproduce the behavior:

  1. Create one

Confirm.prompt( 'Reauthorization', 'Please enter your password', '', 'Send', 'Cancel', answer => { setPassword(answer); }, () => {}, {} ); };

  1. Create a second one

Confirm.show( 'Profile deletion!', 'Really delete?', 'So', 'No', () => { }, () => {} );

Expected behavior

I expected that first there would be one modal window and I would enter the data, then I would get a message about deleting the profile and an option to confirm it

furcan commented 1 year ago

https://github.com/notiflix/Notiflix/issues/60

Thanks