Open Boby900 opened 1 week ago
I was having the same issue.
For me, the issue was an invalid schema / validation.
console.log(yourFormName.formState.errors);
https://github.com/shadcn-ui/ui/issues/456#issuecomment-1563231165
console.log(yourFormName.formState.errors);
thanks for jumping in, but still I am not able to solve it.
I made some changes in code and data is getting console logged but zod is not providing any validation errors when I am submitting the empty form.
You have to make sure your schema validation matches your form. Good luck!
okay, thanks for your help @hmongdev but I have checked it multiple times, it's already matching with my form.
Describe the bug
I am trying to submit the form and playing around with Next.js 15 and React.js 19 but form doesn't seems to be working, it's not getting submitted. and I am also not seeing any
Affected component/components
Form
How to reproduce
use Next.js 15 and React.js 19 install the form component try to submit the form.
When I remove the onSubmit function my form is submitted and data is getting console logged as URL =
GET /?username= 200 in 242ms, GET /?username=sss 200 in 216ms
but not getting any type of warnings from zod when I am trying to submit the empty form and also not getting any requests in the network tab.
Codesandbox/StackBlitz link
https://github.com/Boby900/react-todo
Logs
No response
System Info
Before submitting