70
rated 0 times
[
75]
[
5]
/ answers: 1 / hits: 48789
/ 4 Years ago, mon, august 3, 2020, 12:00:00
I have the following yup check:
nrOfApples: yup.number().min(0).max(999),
And right now if I leave the field blank, it validates as false. Is there any way to make yup.number() accept empty values? I have tried:
yup.number().nullable()
But it doesn't seem to work. Any ideas on how I can make such thing happen?
More From » yup