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'm having a bunch of components that all share some properties, so I've moved them into a mixin (also tried with extending from a parent component).
The prop binding works perfectly when using the component normally, in an SPA for example. When building it as a webcomponent though, the prop binding will no longer be recognized: The component is still able to access the prop attribute correctly, but will always chose the default value - or undefined if no default is provided.
<webcomponent-test theme="custom"></webcomponent-test>
This will display 'defaultTheme' instead of 'custom'.
When adding the prop directly to the component it works fine though.
The text was updated successfully, but these errors were encountered:
I'm having a bunch of components that all share some properties, so I've moved them into a mixin (also tried with extending from a parent component).
The prop binding works perfectly when using the component normally, in an SPA for example. When building it as a webcomponent though, the prop binding will no longer be recognized: The component is still able to access the prop attribute correctly, but will always chose the default value - or undefined if no default is provided.
Example:
Mixin:
MyComponent:
Using the Webcompenent:
<webcomponent-test theme="custom"></webcomponent-test>
This will display 'defaultTheme' instead of 'custom'.
When adding the prop directly to the component it works fine though.
The text was updated successfully, but these errors were encountered: