apvarun/toastify-js

Property style.background has stopped working

catempire opened this issue · 4 comments

I am pulling Toastify JS from the CDN. Just now I've realized that the property style.background is no longer working, and my toasts are using the built-in style from toastify.css instead. (I did force reload all my resources to ensure that it wasn't a stale version.) The property backgroundColor still works, but this gives me a deprecation warning.

Can you show the code you're using? I'm wondering if it's a precedence thing going on here... Any chance of a repro with something like jsfiddle?

For now, I am just using css to style the background color. You can apply background: inherit; to the .toastify selector, then whatever bg you want to the className you specify in the js.

Fixed by #81 in 1.11.2