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
I have a component which accepts data- attributes like data-image-width. Obviously this gets serialized as dataImageWidth on the webc.attributes object, but then if you run webc.renderAttributes(webc.attributes), the attribute ends up getting serialized as dataimagewidth, losing the dashes. Here's a template which should reproduce it:
Wanted to add that I'm actually seeing this behavior with @attribute as well. This is a pretty big issue because it's killing aria-X attributes that I want to pass through to components. Example:
I have a component which accepts
data-
attributes likedata-image-width
. Obviously this gets serialized asdataImageWidth
on thewebc.attributes
object, but then if you runwebc.renderAttributes(webc.attributes)
, the attribute ends up getting serialized asdataimagewidth
, losing the dashes. Here's a template which should reproduce it:Current output:
Desired output:
The text was updated successfully, but these errors were encountered: