Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference rootElement when repositioning #97

Open
AStoker opened this issue Jan 28, 2022 · 0 comments
Open

Reference rootElement when repositioning #97

AStoker opened this issue Jan 28, 2022 · 0 comments

Comments

@AStoker
Copy link
Contributor

AStoker commented Jan 28, 2022

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.

var allToasts = document.getElementsByClassName("toastify");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant