-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
What happened?
When using useField with an object value + useForm where rendering of the useField component instance is delayed, the validation fails when using resetForm.
Reproduction steps
- Create parent component where useForm is used and rendering of form is delayed.
- Add logic to reset form and then render the child component containing useField()
- Form schema and child component should contain an object value, where one or more properties are required.
- Trigger logic defined in step 2.
- Form receieves the correct values, but does not validate correctly.
...
I noticed this did work at least in version 4.11 and appears to have broken in version 4.12.0
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Only chrome was tested.
- Firefox
- Chrome
- Safari
- Microsoft Edge
Demo link
https://stackblitz.com/edit/neyvd4-yrhrhkhq?file=src%2FApp.vue
Code of Conduct
- I agree to follow this project's Code of Conduct
hmaack and HaNdTriX
Metadata
Metadata
Assignees
Labels
No labels