logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.82k stars 1.27k forks source link

Multiple Forms on same component Vuejs 3 #4550

Closed FreeLancerPT closed 11 months ago

FreeLancerPT commented 11 months ago

What happened?

I am using useForm for two forms in the same component, but something is not working as expected.

My code : import { useForm } from 'vee-validate'

const xForm = useForm({})

const yForm = useForm({})

I can do everything with yForm, xFrom don't work! If ichange order yForm over, i can do evrthing with xForm but yForm dosen't work!

My question can i declare two useForm for two diferent forms on the same componente?

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

Code of Conduct

FreeLancerPT commented 11 months ago

i think i have found the anwser and i have to put this forms in separated components! #3270

shiny commented 5 months ago

i think i have found the anwser and i have to put this forms in separated components! #3270

Some kind of weird