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
elwayman02
changed the title
LinkTo doesn't support arbitrary attributes in <3.10
LinkTo and Input don't support arbitrary attributes in <3.10
Jun 17, 2020
The built-in LinkTo component provided by this polyfill doesn't pass through arbitrary attributes. For example:
<LinkTo @route='/' data-some-attribute>Index</LinkTo>
renders as
<a href="/">Index</a>
but should be
<a href="/" data-some-attribute="">Index</a>
The polyfill rewrites LinkTo to curly invocation but doesn't put the arbitrary attributes anyway.
The same thing is true for
<Input>
. Both of these built-ins allow arbitrary attributes in 3.10+, but the polyfill did not maintain that support.To solve this, we need a similar approach to the Component runtime polyfill (that runs for <2.12).
The text was updated successfully, but these errors were encountered: