Apollo 10.1.0 with PrimeReact 10.3.3 react-hook-form not working #1167
Replies: 1 comment
-
Raised in error |
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 have noticed since upgrading to the latest PrimeReact version that react-hook-form integration does not update the form data when I leave the field by clicking on the next field. The form data is updated when I use the tab to move to the next field.
I notice the Apollo docs say dependency on PrimeRecat 10.2.1 .
Do I need to down rade my version on PrimeRecat 10 10.2.1?
Will Apollo be upgraded to work with 10.3.3?
This applies to using with InputText, InputNumber, and InputSwitch.
My code in case it is user error is:
<div className="field"> <span className="p-float-label mb-5"> <Controller name="vendor.name" control={control} render={({ field, fieldState }) => ( <InputText id={field.name} {...field} disabled={true} className={classNames({ 'p-invalid': fieldState.error, })} /> )} /> <label htmlFor="vendor.name" className={classNames({ 'p-error': errors.vendor?.name })}> Vendors </label> </span> {getFormErrorMessage('vendor.name')} </div>
Beta Was this translation helpful? Give feedback.
All reactions