toastify-js icon indicating copy to clipboard operation
toastify-js copied to clipboard

Reference rootElement when repositioning

Open AStoker opened this issue 2 years ago • 0 comments

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

AStoker avatar Jan 28 '22 21:01 AStoker