Version Number
"@hookform/resolvers": "3.9.1",
"react-hook-form": "7.54.2",
"yup": "1.6.1"
Reproducer:
https://stackblitz.com/edit/vitejs-vite-hufhmrxa?file=src%2FForm%2FForm.tsx
As I understand, this is the same issue as the one described here:
react-hook-form/documentation#801
Steps to reproduce
- Start app
- Input IP and port for the 1st server
- Press Submit
- Press "Delete" for the 1st server, examine the form's errors
errors: {
"servers": {
"message": "servers field must have at least 1 items",
"type": "min",
"ref": {
"name": "servers"
}
}
}
- Press "Submit" again, examine the form's errors.
errors: {
"servers": {
"root": {
"message": "servers field must have at least 1 items",
"type": "min",
"ref": {}
}
}
}
Expected behaviour
The validation error must be always at errors.servers.root. It should not change its location.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Version Number
"@hookform/resolvers": "3.9.1",
"react-hook-form": "7.54.2",
"yup": "1.6.1"
Reproducer:
https://stackblitz.com/edit/vitejs-vite-hufhmrxa?file=src%2FForm%2FForm.tsx
As I understand, this is the same issue as the one described here:
react-hook-form/documentation#801
Steps to reproduce
Expected behaviour
The validation error must be always at
errors.servers.root. It should not change its location.What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct