I am using Redux form v6.5.0 and having a requirement of Removing the validation for any Field when the disabled props is passed as true.
I wrote a custom logic to disable the validation inside render() of custom field component, but looks like updateSyncErrors() is not getting called on the form even after updating the values manually. Because of this, syncErrors object is persisting the field validation error.
if (field.disabled) {
field.meta.invalid = false;
field.meta.error = undefined;
field.meta.valid = true;
}
Can we have some straight forward - simple & better approach which tackles this requirement and fixes this issue?