andyhu92 / react-bootstrap4-form-validation

Simple React Components for form validation. Based on HTML5 Constraint validation API and Bootstrap4 style.
https://andyhu92.github.io/react-bootstrap4-form-validation/
MIT License
15 stars 4 forks source link

Can I remove validation when unfocus input and it's not required. #8

Open d12e493 opened 4 years ago

d12e493 commented 4 years ago

If I use the TextInput and set the validation is email. When the page render, and user key in wrong word on the email component. The validation is work and show the error message. But if user clean the input field, the error message is still display.

The input is not required, any solution that I can do to avoid still display error message ? Or I can call any method to reset specific input field status.

Thanks.