Closed Sakthi002 closed 1 year ago
You can use validate
directly. It returns the same thing as validateWithInfo
with some changes.
const result = await this.$refs.myForm.validate();
console.log(result); // { valid: false, errors: { field1: "error message" } };
What happened?
Currently in my project, I am trying to update vee-validate to latest version
Previously in v3 i used
validateWithInfo
for validating the form using $refsAfter updating to v4, i am getting this error
Please help me to fix this issue
Reproduction 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://codesandbox.io/s/clever-wildflower-mm7g62?file=/src/App.vue
Code of Conduct