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
Hi! I have a form for changing the user's phone number in my personal account. Logically, the default Value (the user's current phone number) should be displayed in the phone number field. But if you do this, the react hook form will return an error stating that the field is empty (although everything is fine with the default Value, it exists). If you replace value={value} in the code, then value is undefined for some reason, and accordingly react hook form returns an error.
Hi. I don't use react-hook-form so I dunno. I won't be looking into this issue (if there is any). Perhaps it's an issue in how you're using the library because no one has reported anything like that.
Hi! I have a form for changing the user's phone number in my personal account. Logically, the default Value (the user's current phone number) should be displayed in the phone number field. But if you do this, the react hook form will return an error stating that the field is empty (although everything is fine with the default Value, it exists). If you replace
value={value}
in the code, then value is undefined for some reason, and accordingly react hook form returns an error.Here is a sample code and a demo.
Example 1:
PhoneInput component:
Form:
Form:
The text was updated successfully, but these errors were encountered: