Closed khawarizmus closed 1 month ago
Well it seems that the issue is that i was using the Form
component instead of the form
element.
Not sure if this is an expected behaviour but if it is then the documentation should fix the anatomy section.
If it isn't then the bug is still present and demo-able here where you have tow identical dialogues one works and the other one doesn't.
https://stackblitz.com/edit/nuxt-starter-ggrskg?file=app.vue
@khawarizmus Hi you are mixing two different ways together which it's not the best practices
While using <Form>
component you don't need useForm
composable and handleSubmit
function, you just need to use <Form>
component props like
<Form :validation-schema="schema" @submit="onSubmit">
If you are validation something inside Dialog
component <Form>
component is recommended
Related issue: https://github.com/radix-vue/shadcn-vue/issues/459
Thank you it makes sense now
Reproduction
https://stackblitz.com/edit/nuxt-starter-ggrskg?file=app.vue
Describe the bug
I have followed the documentation step by step but so far I am unable to make the form submit. I have attached a reproduction link to showcase the problem.
But i will go ahead and past my original code for reference:
System Info
Contributes