Closed alexcroox closed 7 months ago
Which rules or schema are you using? If Yup/Zod/Valibot
then these do not support the label
prop as it is only for the global validators.
Can you add an example please?
OK thanks for the clarification, can I send a PR for an update to the docs to make it super clear label doesn't work if you are using Yup because that was a big footgun for me as the API doesn't mention that:
https://github.com/logaretm/vee-validate/blob/main/docs/src/pages/api/use-field.mdx#L377-L387
What happened?
Setting a custom label in Field doesn't propagate to errors
Reproduction steps
I'm still seeing "firstName is a required field" instead of "First Name" which is the value of
label
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
d
Code of Conduct