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
If I have defined a model where I specify a boolean attribute. e.g. @byBooleanAttrVal() checked. And, I have an instance of my web component where I do not specify that attribute (e.g. . The props passed to my React components render method contain the checked prop set to the default value from the model definition.
Actual Behaviour
I would expect any model attributes that are not specified to not be passed as props. Otherwise, I have no way of telling whether the user set that attribute or not.
Reproduce Scenario (including but not limited to)
I was wrapping up a React implemented checkbox widget.
Steps to Reproduce
Create a React component that takes a boolean prop
Create a model for that component that uses @byBooleanAttrVal()
Instantiate the web component without using the boolean attribute from your model
Set a breakpoint in the render method of your React component
Look at the props and see that the boolean prop has been passed in
Platform and Version
Chrome 72
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered:
Expected Behaviour
If I have defined a model where I specify a boolean attribute. e.g.
@byBooleanAttrVal() checked
. And, I have an instance of my web component where I do not specify that attribute (e.g. . The props passed to my React componentsrender
method contain thechecked
prop set to the default value from the model definition.Actual Behaviour
I would expect any model attributes that are not specified to not be passed as props. Otherwise, I have no way of telling whether the user set that attribute or not.
Reproduce Scenario (including but not limited to)
I was wrapping up a React implemented checkbox widget.
Steps to Reproduce
@byBooleanAttrVal()
render
method of your React componentPlatform and Version
Chrome 72
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: