-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nullable() not woking on version 1.0.0 #1916
Comments
this is working, please read the major changes in v1 #1906 |
Sorry, a little quick. yup is working as it's supposed to here, if you just validate via the schema it doesn't throw an error on v1 which is correct. It seems tho that something else is happening in RHF that is causing it to continue to error on submit |
Thank you!
|
note that the |
Hi, Can provide an example of nullable in this case? note that the nullable doesn't do anything there, it's immediately overridden by required RHF Formik Thanks! |
Describe the bug
To Reproduce
firstName: yup.string().required("firstName is required").nullable(true)
=> WORKfirstName: yup.string().required("firstName is required").nullable()
=> NOT WORKCheck in : https://codesandbox.io/s/snowy-https-0l49w7?file=/src/Demo.tsx
Expected behavior
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: