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

Feature Request: Passing element as node or root element option #74

Closed
davidbwaters opened this issue Feb 13, 2021 · 2 comments · Fixed by #75
Closed

Feature Request: Passing element as node or root element option #74

davidbwaters opened this issue Feb 13, 2021 · 2 comments · Fixed by #75

Comments

@davidbwaters
Copy link

Hi, I'd like to use this with Shadow DOM and would like the option to set the root node of the observer or the ability to pass a list of elements as an alternative to the current string selector option and just type check on init. I know Intersection Observer has a root option also, but which would work. I think IO on the body penetrates shadow DOM, so passing elements would probably work best.

@mciastek
Copy link
Owner

Hey @davidbwaters, I added feature you requested. You can use root option. See documentation for more details.

@davidbwaters
Copy link
Author

Wow, great support. Thanks.

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

Successfully merging a pull request may close this issue.

2 participants