react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

Redux-form asyncBlurField equivalent in React-final-form

Open midhunpm opened this issue 5 years ago • 1 comments

Anybody know how to run a validation rule on blur from a field. I have async request that checks for the availability of login id. Need to make this check when the user finish entering the loginid and blur out from the field. Right now, I pass the validate function to the Field and it's firing on each and every key stroke in the field. I want to do it only on blur from the field.

midhunpm avatar Sep 26 '20 01:09 midhunpm

The Form has a validateOnBlur option that might do what you want: <Form validateOnBlur={true} ... />. There is an issue with this and submit though: https://github.com/final-form/final-form/issues/213

darioseidl avatar Jul 13 '21 17:07 darioseidl