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 am using validation for postalcode in a input box.
phone: yup
.number()
.max(9)
.typeError("Provide in postalcode number format"),
When typeError() is given to phone(which is not specified required), and when nothing is entered for phone, then also it attaches a typeError to it. Ideally if nothing is entered and it is not specified "required", it should not give an error.
The text was updated successfully, but these errors were encountered:
I am using validation for postalcode in a input box.
phone: yup
.number()
.max(9)
.typeError("Provide in postalcode number format"),
When typeError() is given to phone(which is not specified required), and when nothing is entered for phone, then also it attaches a typeError to it. Ideally if nothing is entered and it is not specified "required", it should not give an error.
The text was updated successfully, but these errors were encountered: