next-learn
next-learn copied to clipboard
Docs: Chapter 14 improving-accessibility not showing error
What is the improvement or update you wish to see?
In chapter 14 server side validation section.
We want to show required field error , when user submit empty form.
but in documentation they use invalid_type_error that is not for required error
Is there any context that might help us understand?
In this screenshot you can see mistake on line 4 and 10
this can be fix by using required_error instead of invalid_type_error. Like this
Does the docs page already exist? Please link to it.
https://nextjs.org/learn/dashboard-app/improving-accessibility