bug: Stencil compiler overrides initial prop value from html #3185
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Has Workaround
This PR or Issue has a work around detailed within it.
Prerequisites
Stencil Version
2.10.0
Current Behavior
Environment: Compiling In browser. Not sure if this is happening in Node too.
As of 2.10.0, I noticed that the compiler is introducing an instance prop to the generated class and that causes it to clobber/overwrite the initial value given by the html string.
For example, given
<my-cmp name="theo"></my-cmp>
name will beundefined
instead oftheo
Expected Behavior
Initial values from html should be preserved during construction, similar to 2.9.0
The compiler from 2.9.0 outputs
Steps to Reproduce
Given the following component
The compiler outputs
Code Reproduction URL
https://jsfiddle.net/n5oL4613/
Additional Information
Possibly duplicates/relates to #3130
The text was updated successfully, but these errors were encountered: