-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
onValueChange function assignment on RadioGroup gives type error when using Form and zodResolver #735
Comments
Running into similar errors, it seems a recent release in react-hook-form caused this (react-hook-form/react-hook-form#10342). Reverting react-hook-form to 7.44.3 helps for now |
As said by @marcelblijleven, it's a problem related to |
Hey, @dan5py I just rolled back from version 7.45.1 to version 7.44.2 The latest product type is as follows Is there any other solution? |
Update to 7.45.2 |
Can confirm the issue is resolved with 7.45.2 |
I'm still getting the same TS error after upgrading to 7.46.1. Tried 7.45.2 also! |
this is my radio group I dont want to use it with form as I have many more components const [selectedJobType, setSelectedJobType] = useState("Fertilizing"); const handleRadioChange = (event) => {
|
has this been resolved?? getting same error |
Replace: And
|
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
I'm using the Form+RHF component with zodResolver in this typescript project, and uses the way shown in the example to use a enum on the formSchema and a RadioGroup. But when trying to assign the form's onChange function to the RadioGroups' onValueChange it gives a type error.
The error:
The text was updated successfully, but these errors were encountered: