-
Notifications
You must be signed in to change notification settings - Fork 7
Traverse shadowRoots when binding links #10
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
Comments
pwa-helpers does it by listening to clicks in the https://github.com/Polymer/pwa-helpers/blob/master/src/router.ts#L47 Does this circumvent the need to traverse and bind? |
Oh sure! I didn't realize that clicks registered on the I don't believe this works for all elements though, which kind of surprises me. Do you know if this is clearly defined in the spec somewhere? I just wanna make sure that all browsers adhere to this same behavior. |
After looking at this a little more closely, it looks like, anytime any |
We can possibly use the |
The original issue has been fixed in 0393f44 and has since been available in version 0.4.0 of the package. Closing. |
When hitting a route, the current implementation binds relative links to prevent full page reloads, but does not do this for links that are nested within shadowRoot of route elements.
Unfortunately, there is currently no way to easily traverse all shadow roots within a route element. But there are discussions about adding this functionality to the spec. In the meantime it may make sense for us to just do this manually.
The text was updated successfully, but these errors were encountered: