-
Version Number7.45.2 Codesandbox/Expo snackhttps://codesandbox.io/s/practical-buck-cg5wt2?file=/src/App.tsx Steps to reproduce
Expected behaviourI expect the form to call When I comment out this:
The form behaves as expected. However, once that field is present, despite it being optional, the form does not allow submitting anymore. What browsers are you seeing the problem on?Chrome Relevant log outputNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
is this the same issue: #10744 |
Beta Was this translation helpful? Give feedback.
-
I see a patch has been merged, thanks for pointing out the duplicate. |
Beta Was this translation helpful? Give feedback.
-
Note that this also does not work in 7.45.0, so it is not a direct duplicate of the issue. I tried v7.45.3 and it still does not work: Note that clicking the checkbox does not create a change in the form. |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 Any idea what this issue might be in relation to the other one? (It's not a duplicate but seems similar in behavior.) |
Beta Was this translation helpful? Give feedback.
-
Does the latest fix this issue? |
Beta Was this translation helpful? Give feedback.
-
You only marked Furthermore, you are using If you want to trigger any action on change of the field, just put it in your custom onChange handler. |
Beta Was this translation helpful? Give feedback.
Thanks for providing the demo. The button still was not enabled after clicking the checkbox, but I resolved this thanks to your pointer with:
The underlying issue apparently is the email validation, for more context see: colinhacks/zod#310