issue: Incorrect Docs #11043
Unanswered
aronedwards
asked this question in
Q&A
Replies: 0 comments
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.
-
Version Number
7.45.0
Codesandbox/Expo snack
n/a
Steps to reproduce
To have an error message for a checkbox, required must be a string with said error
<input {...register('acceptedTermsAndConditions', { required: 'Must be ticked', })} id='accept-terms' type='checkbox' />
Attempts to use return strings from validation fail
Expected behaviour
https://www.react-hook-form.com/api/useform/register/
Docs suggest required must be a boolean, making debugging the issue of a an empty error message very difficult
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions