Skip to content

Commit 0a34f45

Browse files
committed
Form validation, isValid is back
1 parent bc279bb commit 0a34f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/FormValidation.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export default class FormValidation extends React.PureComponent<IProps> {
1919
this.props.onSubmit(isValid);
2020
}
2121

22+
isValid = (formSubmitted: boolean = true) => {
23+
return this.validationContext.isValid(formSubmitted);
24+
}
25+
2226
reset = () => {
2327
this.validationContext.reset();
2428
}

0 commit comments

Comments
 (0)