Closed hossambarakat closed 2 weeks ago
hello, try with the initialCountry in lowercase
Thanks @BrunoViera I am already using initialCountry
with the right casing.
@hossambarakat I'm not familiar with react-hook-form, but it looks like the Controller component you're using is for working with controlled inputs, and our react plugin is very much an uncontrolled input.
As an experiment, if you comment out all of the react-hook-form stuff, does it work then?
Closing due to inactivity.
Thanks for the great component.
Plugin version
24.6.0
Steps to reproduce
I am trying to create a reusable component called
MobileField
to use inside myreact-hook-form
. I use the component as shown belowThe reusable component
Expected behaviour
I am expecting the component to render the phoneNumber in national format
Actual behaviour
The component renders the phoneNumber in international format. I tried passing hardcoded value to the component and it renders the state using the national format so I am not sure what I am missing.
I appreciate your support with any pointers on what to trial or what is missing.
Thanks, Hossam