When I have number (says Australia and number 043xxxxxx). When I change the country the country changes to the default country, not to the new selected country.
Any solution for this?
this is my code:
<PhoneInput
type={type}
name={name}
required={required || false}
value={value || ""}
id={name}
disabled={disabled}
onBlur={e => {
handleBlur(e);
}}
defaultCountry="AU"
addInternationalOption={false}
onFocus={e => {
handleFocus(e.currentTarget.value);
}}
onChange={value => {
// this value is full phone number with country code, e.g. +123123123
setValue(value);
}}
/>
Hi
When I have number (says Australia and number 043xxxxxx). When I change the country the country changes to the default country, not to the new selected country. Any solution for this?
this is my code: