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
Click ResetToDefaults
Expect: ObjectWithDefaults should be set back to its values passed into the constructor
Actual: ObjectWithDefaults does not change
Cause:
field.init is called on each render and resets the field.initValue field. On resetToDefaults it uses this field.initValue field as the default value
The text was updated successfully, but these errors were encountered:
Component
Field
Reproduction link
https://riddle.alibaba-inc.com/riddles/bea0910
Steps to reproduce
Expect: ObjectWithDefaults should be set back to its values passed into the constructor
Actual: ObjectWithDefaults does not change
Cause:
field.init is called on each render and resets the
field.initValue
field. On resetToDefaults it uses thisfield.initValue
field as the default valueThe text was updated successfully, but these errors were encountered: