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

ValidationForm immediate property is not work? #3

Closed abakumov-v closed 6 years ago

abakumov-v commented 6 years ago

On page https://andyhu92.github.io/react-bootstrap4-form-validation/#/api/validation-form if I check/uncheck property immediate then nothing happens.

Also I'm tryed set this property to true in my code - nothing happens also...

andyhu92 commented 6 years ago

immediate means whether to validate the input onChange or onBlur, if set to true, then you should see the feedback message immediately as you typing, and if set to false, then the feedback message will be showed when you move away from current input. I tried and looks like it's working well for me, could you verify again?

abakumov-v commented 6 years ago

@andyhu92 I thought this property meant that the form would be validated immediately after rendering...

andyhu92 commented 6 years ago

No...the form will only be validated when you submit it.