shakee93 / vue-toasted

🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
https://shakee93.github.io/vue-toasted/
MIT License
2.21k stars 194 forks source link

ClassName are keep on each show #197

Open Hydrog3n opened 3 years ago

Hydrog3n commented 3 years ago

Hello, I found a bug. If launch toasted multiple time with error and success the classname are keep in the html element. I found also here : https://github.com/shakee93/vue-toasted/blame/db5ccc47b9b7b27f097dde0943d67f4269c6be0d/src/js/toast.js#L212 the object options are shallow clone so by adding className in the options the global options is also modified.

When may want to do a deep clone.

Thank for the plugins