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
Scenario
I have a form with some field initialized with value 0. This field is binded to text input. When I try to remove value - actual field value becomes "", but in text input it still 0.
Scenario
I have a form with some field initialized with value 0. This field is binded to text input. When I try to remove value - actual field value becomes "", but in text input it still 0.
Issue
Here https://github.com/erikras/redux-form/blob/master/src/createHigherOrderComponent.js#L45 in second comparison we have a problem because by default 'deep-equal' module uses non strict comparison and thus we skip updating for fields values (but in state they are updated)
javascript
componentWillReceiveProps(nextProps) {
if (!deepEqual(this.props.fields, nextProps.fields) || !deepEqual(this.props.form, nextProps.form)) {
this.fields = readFields(nextProps, this.props, this.fields, this.asyncValidate, isReactNative);
}
...
}
The text was updated successfully, but these errors were encountered: