Closed ngthtung closed 3 days ago
You should not use both Form
and useForm
at the same time. Form
is just a component that calls useForm
internally.
What happens in your example is you create 2 forms with the Form
component being the owner of that state rather than the form context created with useForm
.
use a form
element instead and your code will work as expected, the Form
component also render a form tag by default anyways.
What happened?
follow the demo code, we don't use form as tag, we use
Form
import fromvee-validate
, and value seems not to reactiveReproduction steps
1. 2. 3. ...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
https://stackblitz.com/edit/vee-validate-v4-global-rules-arwe9g?file=src%2FApp.vue
Code of Conduct