christianalfoni / formsy-react

A form input builder and validator for React JS
MIT License
2.6k stars 438 forks source link

onValid fires even when internal validation shouldn't pass #493

Closed andrewlorenz closed 6 years ago

andrewlorenz commented 6 years ago

e.g.

handleValidForm() {
  console.log("I am valid");
}

render() {
  return (
    <Form onValid={this.handleValidForm}>
      <FormsyText name="email" required type="email" />
    </Form>
  );
}

onValid fires on every keypress, regardless of the type="email" validation that was requested.