Closed Fauphi closed 4 months ago
I don't think this was suggested in the docs anywhere. Form
component does not emit any event besides the submit
event and invalid-submit
.
If you want to be notified of value changes, then consider using useForm
and watching the values
property.
const { values } = useForm();
watch(values, () => {
// Do something
}, { deep: true });
What happened?
My custom component that does use useField but no standard form elements like input, select,.. does not trigger the change event on the form. Validation works in the custom component.
Reproduction steps
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-custom-inputs-umelh5?file=src%2FApp.vue
Code of Conduct