Replies: 2 comments
-
not sure why it seems working on codesandbox, closing.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I see the problem here, the toggle button didnt specify a button type so it also trigger the form submit, after adding button type it works.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to disable all auto validation and only validate the form when the form is submitted.
I have set
validateOnBlur
,validateOnMount
,validateOnChange
all to false, but in my situation, it does not work.I am using a toggle button to control the input type between 'text' and 'password' so that I can show/hide the user input on password. But every time when I click the toggle button the validation runs and shows the error message.
How can I stop the validation?
Here is my code and sandbox
Beta Was this translation helpful? Give feedback.
All reactions