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
It is known in Yup that type number has weird requirements when validating a number input that is blank. A common fix is to add the following code: .transform = (_, val) => (val !== '' ? Number(val) : null)
Is there any way to add transform support?
edit:
tried adding a typeHandler, but no avail
The text was updated successfully, but these errors were encountered:
It is known in Yup that type number has weird requirements when validating a number input that is blank. A common fix is to add the following code:
.transform = (_, val) => (val !== '' ? Number(val) : null)
Is there any way to add transform support?
edit:
tried adding a typeHandler, but no avail
The text was updated successfully, but these errors were encountered: