sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

The alert background color is not revert after the error function call #397

Open yatinB07 opened 4 years ago

yatinB07 commented 4 years ago

Hi,

I have used Pnotify,

For alert I used: PNotify.alert(opts);

For error I used: PNotify.error(opts);

When I run alert function more the one time it works properly, but when the error function call and then after I call the alert without page refresh the alert's background color remain the same as of error.

I notice that the error related class are not removed when I call alert after the error

irving-caamal commented 3 years ago

I highly recommend you use PNotofy.removeAll();

every time you use a PNotify notifications to avoid multiple notifications on the screen.

Let me know if that works for you.