Does ctx.root point to the component or the document root?
Edwin Paul
1 day ago
Hey, does ctx.root.querySelector search within the component itself or from the document root? I usually generate dynamic IDs, but I’m hoping there’s a cleaner way.
Jacob Kofoed
1 day ago
It searches from the document root. The only difference from using document.querySelector is if the component is being used as a web-component, in which case ctx.root would return the ShadowRoot.