next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Docs: Chapter 14 improving-accessibility not showing error

Open saifion33 opened this issue 2 years ago • 0 comments

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

Screenshot 2023-11-23 at 20-47-49 Learn Next js Improving Accessibility Next js

this can be fix by using required_error instead of invalid_type_error. Like this

Screenshot 2023-11-23 205204

Does the docs page already exist? Please link to it.

https://nextjs.org/learn/dashboard-app/improving-accessibility

saifion33 avatar Nov 23 '23 15:11 saifion33