You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using it with react hook form. I have created a wrapper component using the react-hook-form controller. So the issue here is the value property not updating the UI but it is reflecting in props. I think some issues related to component re-rendering.
<Controller
control={control}
name={name}
render={({field: {value, onChange, onBlur}, fieldState: {error}}) => {
console.log('value:', value);
return (
I am using it with react hook form. I have created a wrapper component using the react-hook-form controller. So the issue here is the value property not updating the UI but it is reflecting in props. I think some issues related to component re-rendering.
<Controller
control={control}
name={name}
render={({field: {value, onChange, onBlur}, fieldState: {error}}) => {
console.log('value:', value);
return (
<PhoneInput
textInputProps={{
onFocus: () => setIsFocus(true),
onBlur: () => {
onBlur();
setIsFocus(false);
},
}}
value={value}
The text was updated successfully, but these errors were encountered: