-
Am I stupid or is the definition of the FieldState in vee-validate.d.ts not complete!? Current used version of vee-validate is "4.6.7" Current definition in vee-validate.d.ts:
Should be:
The Problem is, that i want to reset a Field but the dirty flag is set to true. If i use:
it works, but i get a build-error If i look at the documentation: https://vee-validate.logaretm.com/v4/api/use-field#api-reference the definition of the interface is different from the definition in vee-validate.d.ts |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Both valid and dirty are computed. They are read only and they are ignored if you pass them like that. They seem to work because you have reset the value which would set dirty to false. And if the new value is valid then it would also set the valid flag to true. |
Beta Was this translation helpful? Give feedback.
Both valid and dirty are computed. They are read only and they are ignored if you pass them like that.
They seem to work because you have reset the value which would set dirty to false. And if the new value is valid then it would also set the valid flag to true.