-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Custom validations on multi select not getting Array #248
Comments
Thanks for the detailed issue report, verified and it's a bug. I will patch it soon. |
Thanks. this have been fixed: https://codesandbox.io/s/react-hook-form-qefbn (deleted already) here is the beta version: 3.22.2-beta.7 |
This patch should be released soon :) if there is no other issue found |
Wow, that was fast! 💪 Thanks! |
Thanks releasing tonight 🤗 |
the patch has been released, please close this issue if works fine :) |
Yout CodeSandbox is not exists. 404 error |
@sandroweb what's the issue? the problem is resolved, CSB was limited at the time, so i only had 50 before to manage. |
I asked yesterday because the solution was not clear for me, but I solve. Thank you! |
I'm trying to validate a "select multiple" input using a custom validation in the register callback like so
However, the
value
passed to the validator function is always a String, the value of which is the topmost selectedoption
.Codesandbox available here https://codesandbox.io/embed/react-hook-form-1m47u
Is this a bug, or am I doing something wrong?
The text was updated successfully, but these errors were encountered: