You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really appreciate your last feature, which added meta.required, which is returned on useField(), when I implemented new design I noticed the meta.required is always false, when I have input which stores value in Number type and I use number().required() as validation rule in yup.
Also:
Couldn't be meta.required reactive, so value of it will change depending on when() is at this moment true or false? It would be nice so my design of inputs would change (I would reactively change inputs design) depending if input is required or not.
Reproduction steps
useForm with validation on input with number().required()
Meta required seems to be false, however works without problem on `string().required()
...
You can change validation type in schema from number() to string() and meta will be correct
What happened?
I really appreciate your last feature, which added
meta.required
, which is returned onuseField()
, when I implemented new design I noticed themeta.required
is alwaysfalse
, when I have input which stores value inNumber
type and I usenumber().required()
as validation rule in yup.Also:
Couldn't be
meta.required
reactive, so value of it will change depending onwhen()
is at this moment true or false? It would be nice so my design of inputs would change (I would reactively change inputs design) depending if input is required or not.Reproduction steps
number().required()
...
You can change validation type in schema from
number()
tostring()
and meta will be correctVersion
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://stackblitz.com/edit/vue-nqdv8g?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: