We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report
name
"test"
"test.inner"
validate
() => 'Required'
() => 'Required2'
The first rendered field on UI is the "test" field
Actual result:
{"0":"R","1":"e","2":"q","3":"u","4":"i","5":"r","6":"e","7":"d","inner":"Required2"}
"Required2"
The first rendered field on UI is the "test.inner" field
"Required"
The two examples are presented in CodeSandbox
react-final-form: 6.5.0 final-form: 4.20.1 Node: 18.19.0 Browser: Latest Chrome MacOS Apple M1
A similar issue was fixed for FieldArray: #160.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Are you submitting a bug report or a feature request?
Bug Report
What is the current behavior?
Prerequisites
name
property for the first field equals"test"
.name
property for the second field equals"test.inner"
.validate
property for the first field equals() => 'Required'
.validate
property for the first field equals() => 'Required2'
.Example 1
The first rendered field on UI is the
"test"
fieldActual result:
"test"
field receives broken error{"0":"R","1":"e","2":"q","3":"u","4":"i","5":"r","6":"e","7":"d","inner":"Required2"}
"test.inner"
field receives the correct error:"Required2"
Example 2
The first rendered field on UI is the
"test.inner"
fieldActual result:
"test.inner"
field doesn't receive an error at all"test"
field receives the correct error:"Required"
What is the expected behavior?
validate
callback for the field):"test"
field will receive"Required"
error."test.inner"
field will receive"Required2"
error.Sandbox Link
The two examples are presented in CodeSandbox
What's your environment?
react-final-form: 6.5.0
final-form: 4.20.1
Node: 18.19.0
Browser: Latest Chrome
MacOS Apple M1
Other information
A similar issue was fixed for FieldArray: #160.
The text was updated successfully, but these errors were encountered: