Don't try to validate hidden fields
This commit is contained in:
parent
90365b711c
commit
507b4cb957
@ -17,7 +17,10 @@ export default class ControlPane extends Component {
|
||||
}
|
||||
|
||||
validate = () => {
|
||||
this.props.fields.forEach(field => this.componentValidate[field.get("name")]());
|
||||
this.props.fields.forEach((field) => {
|
||||
if (isHidden(field)) return;
|
||||
this.componentValidate[field.get("name")]();
|
||||
});
|
||||
};
|
||||
|
||||
controlFor(field) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user