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
This isn't a similar issue to #3852 , it's the same issue. Hyphenated properties aren't visible because we don't do any conversion between cases, so you have to define the property as either lowercase without hyphens, or camelCase (which won't work with web components).
Either way it's the same issue so I'm closing this one and leaving that one open. Please ensure that you subscribe to it so that you are made aware of any updates.
@ptkdev For those who needs this so bad, I just created a vite plugin that adds kebab-case support for Svelte components vite-plugin-svelte-kebab-props
Please re-open #875, don't work with camelCase export if attribute is kebabCase:
HTML:
Svelte file:
headerText
is undefined.Workaround:
You can use
{$$props["header-text"]}
but if user change the html attribute, svelte, don't re-render html and webcomponent show always "hello".Similiar issue: #3852
The text was updated successfully, but these errors were encountered: