update useFormField function fieldState definition
[ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
[x] ๐ Bug fix (a non-breaking change that fixes an issue)
[ ] ๐ Enhancement (improving an existing functionality like performance)
[ ] โจ New feature (a non-breaking change that adds functionality)
[ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
[ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
On my own project, I had a problem with useFormField; there are no changes inside the FormControl component, aria-invalid property remains unchanged, but errors were inside the errors object returned from useForm vee-validate. Some time was needed to find the problem, and it was inside the useFormField function, where fieldState was just generated with useFieldError, for example, without passing the name inside. After just adding name, everything worked fine. This occurred on custom phone input with select and input that only receives the :name property from the parent slot.
update
useFormField
functionfieldState
definition๐ Description
On my own project, I had a problem with
useFormField
; there are no changes inside theFormControl
component,aria-invalid
property remains unchanged, but errors were inside theerrors
object returned fromuseForm
vee-validate. Some time was needed to find the problem, and it was inside theuseFormField
function, wherefieldState
was just generated withuseFieldError
, for example, without passing thename
inside. After just addingname
, everything worked fine. This occurred on custom phone input with select and input that only receives the:name
property from the parent slot.๐ธ Screenshots (if appropriate)