Replies: 1 comment
-
<Controller
rules={{
required: true,
validate: value => validateField(value)
}}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice for a way to tell RHF a controlled input control is failing validation so that I can't submit unless I fix the error. The only way to use the
setError
now is via the register function but I'm using theuseController
.Beta Was this translation helpful? Give feedback.
All reactions