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.

Home Page:https://notiflix.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - confirm stack

smisyuk4 opened this issue · comments

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

commented

#60

Thanks