You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the latest Next.js, TailwindCSS, and ShadCN packages. I wrote a simple form following the documentation provided on ShadCN docs.
When I log the values of the form using form.getValues(), I'm receiving the form values but when I click on the submit button, the form values are undefined.
Affected component/components
Form, FormField, FormControl
How to reproduce
Run npx create-next-app@latest
Install Shadcn
Install react-hook-form and Zod
Write a simple form component as per the docs and click on the submit button
Describe the bug
I'm using the latest Next.js, TailwindCSS, and ShadCN packages. I wrote a simple form following the documentation provided on ShadCN docs.
When I log the values of the form using
form.getValues()
, I'm receiving the form values but when I click on the submit button, the form values areundefined
.Affected component/components
Form, FormField, FormControl
How to reproduce
npx create-next-app@latest
Codesandbox/StackBlitz link
https://codesandbox.io/p/devbox/t3px56
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: