toastify-js
toastify-js copied to clipboard
Reference rootElement when repositioning
Turns out we don't have proper support for selectors and therefore shadow elements inside the old school toastify.js
file (as opposed to how it works in toastify-es.js
. Simple fix to allow proper selection of shadow root, we just need to save the rootElement
and reference it here.
https://github.com/apvarun/toastify-js/blob/572517040fae6a7f8be4a99778dacda9c933db45/src/toastify.js#L356