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
When using a shadow DOM (such as with web components), the router ignores click events from a tags within shadow DOMs. (I believe it is due to this line.)
This is due to event retargeting.
I have encountered this issue with Material Web Components HREF buttons.
From what I have read, you can get the original element (in the shadow dom) from Event.composedPath(), as long as the shadow DOM was created in open mode. (the MWC buttons are.)
This leads to the entire app reloading when you click a link within a shadow DOM, instead of the router changing pages.
The text was updated successfully, but these errors were encountered:
When using a shadow DOM (such as with web components), the router ignores click events from
a
tags within shadow DOMs. (I believe it is due to this line.)This is due to event retargeting.
I have encountered this issue with Material Web Components HREF buttons.
From what I have read, you can get the original element (in the shadow dom) from
Event.composedPath()
, as long as the shadow DOM was created inopen
mode. (the MWC buttons are.)This leads to the entire app reloading when you click a link within a shadow DOM, instead of the router changing pages.
The text was updated successfully, but these errors were encountered: