forms not submitting
Answered
subscr posted this in #help-forum
subscrOP
hello guys, i'm using shadcn ui forms, and they dont are logging and executing nothing in submit, anybody with same error?
14 Replies
subscrOP
code:
submit
submit
function onSubmit(input: Partial<z.infer<typeof formSchema>>) {
console.log("a")
console.log(input)
};
Standard Chinchilla
I'm using it right now and haven't had that problem
subscrOP
wtf
idk what i can do
I'm clicking on the button, but it won't work, I already have to debug everything, but it's no use
bruh
I think it's something with zod, because I left just the ID and it worked.
Standard Chinchilla
And if you remove the zod schema from useForm, does it work fine?
subscrOP
yeeeess
alright, solved, "tags"
Standard Chinchilla
nice!
subscrOP
the problem was that there was no tag input
Answer