apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.13k stars 230 forks source link

Persistent issue #42

Closed Icaras12x closed 4 years ago

Icaras12x commented 4 years ago

I saw the commits included a "persistent" option so I tried duration: 0 or not including duration but the toast will still fade out. Please include the option in the docs or fix it, thanks.

apvarun commented 4 years ago

Ah! Thanks for pointing it out. For persistent toasts, duration needs to be set as -1. And for the documentation part, feel free to raise a PR 🙂

chasedeanda commented 4 years ago

Here's your PR: https://github.com/apvarun/toastify-js/pull/56.

I wasted too much time debugging this, others shouldn't have to.

apvarun commented 4 years ago

Thanks for the PR @chasedeanda