-
Beginner here. I can't seem to get the basics right. I'm trying to have a numeric input field. When entering a number in a qinput, it's treated as text instead, so I get: Expected bigint, received string
I would have set
Tip: Perhaps extend the Quasar example with a numeric input as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Moved this to Q&A discussions since it is not an issue with vee-validate. The number input usually doesn't emit number values, but rather numeric strings. You could use a z.object({
test_id: z.preprocess((val) => Number(val), z.number()),
}) |
Beta Was this translation helpful? Give feedback.
Moved this to Q&A discussions since it is not an issue with vee-validate.
The number input usually doesn't emit number values, but rather numeric strings. You could use a
zod.preprocess
to cast it.