...constschema:yup.SchemaOf I have a form where some fields are inside an object: But the data validation of this object is only done after changing its external fields, i.e. filling in How do I validate when I change a field myself? Here is the link to the complete code. I use the following version:
group
,description
,first_name
,last_name
(in the same order), and the form will not be considered valid only if you editgroup
ordescription
again."vue":"^3.2.37", "vee-validate": "^4.5.11", "yup": "^0.32.11"
When you use useField() with an object, nested properties lose their reactive connections. So here are two options to solve this problem: wrap useField with reactive() or use separate useField() for each nested property.
Option 1
Option 2
Here is a working exampleHere