Replies: 1 comment
-
If you are trimming it then when submitting it will be trimmed in the But if you need it to be trimmed when the user is still filling the form (after blur), then you can do it manually. Ideally, it would be nice if vee-validate can use the schema to transform the field value when using typed schemas like yup or zod, will require some research on my part. I abandoned that idea because input types won't be correct then, but will take another look. For now, you can handle the blur event and trim the value yourself, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I recently started using
yup
and itstrim
function. Yup validates as expected as if the field is empty, but I was wondering if there was a good way to also transform the field to be empty.Beta Was this translation helpful? Give feedback.
All reactions