You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your support request related to a problem? Please describe.
I'm creating a webapp using web components and I'm trying to lazy load a video that's inside my component, which has a shadow root, and to access its elements it's only possible accessing first the shadowRoot prop. and then selecting it with querySelector() for example.
So I try to use a shadow root prop. as value for the container property of the options object like this:
TypeError: Failed to construct 'IntersectionObserver': Failed to read the 'root' property from 'IntersectionObserverInit': The provided value is not of type '(Document or Element)'.
at lazyload.min.js:1:7380
at new En (lazyload.min.js:1:7543)
at main.js:20:18
trying to select contact-section without shadowRoot won't select any element
To Reproduce
Create a web component and use it as container for the LazyLoad class, through the options argument.
The text was updated successfully, but these errors were encountered:
Is your support request related to a problem? Please describe.
I'm creating a webapp using web components and I'm trying to lazy load a video that's inside my component, which has a shadow root, and to access its elements it's only possible accessing first the
shadowRoot
prop. and then selecting it withquerySelector()
for example.So I try to use a shadow root prop. as value for the
container
property of theoptions
object like this:and it throws the following error:
trying to select
contact-section
withoutshadowRoot
won't select any elementTo Reproduce
Create a web component and use it as container for the
LazyLoad
class, through theoptions
argument.The text was updated successfully, but these errors were encountered: