Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
- Set-up 2 fields fields, each with an async
validate function (with a deliberate delay), and with validateFields set to an empty array (so that they only validate themselves)
- Add a character into one field to trigger the validation
- tab to the other field (while the first field's validation is still ongoing) and add a character into that one too
- Once the validation has finished for each independent field, only the second one will have an
error in its FieldState.
What is the expected behavior?
The error property on the FieldState is correctly populated.
Sandbox Link
https://codesandbox.io/p/sandbox/final-form-async-field-issue-hd93sm
What's your environment?
Latest versions
Other information
I have included instructions in the codesandbox link as well.
(I've set this up using react-final-form for ease)
Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
validatefunction (with a deliberate delay), and withvalidateFieldsset to an empty array (so that they only validate themselves)errorin itsFieldState.What is the expected behavior?
The
errorproperty on theFieldStateis correctly populated.Sandbox Link
https://codesandbox.io/p/sandbox/final-form-async-field-issue-hd93sm
What's your environment?
Latest versions
Other information
I have included instructions in the codesandbox link as well.
(I've set this up using
react-final-formfor ease)