0👍
Why not use a different v-model value for each v-form? Do you have an undetermined number of forms?
If you need to check all validity, you can create a computed data/method that checks all of them.
computed: {
allValid() {
return this.validFormContact && this.validFormPreferences;
}
}
- [Vuejs]-Yup validation -> TypeError: Cannot read properties of undefined (reading 'forEach') at eval (changePassword.vue?18d1:231:1)
- [Vuejs]-Cancel subsequent axios api calls, keep the last
Source:stackexchange.com