catamphetamine / react-phone-number-input

React component for international phone number input
http://catamphetamine.gitlab.io/react-phone-number-input/
MIT License
914 stars 193 forks source link

iPhone Auto fill phone number replaces the phone code with the number only. #352

Closed shirazz closed 4 years ago

shirazz commented 4 years ago

REPOST GITLAB ISSUE

In iOS there is an option where the keyboard prompts with the phone number. In case of the International format being true and if we select the phone number, the existing country code in the input is erased and only number is added. Sharing a screen shot below for reference. In this case below where the expected input is +971 569 XXX XXXX it is +569 XXX. So the code is now not present.

image

aryan-1911 commented 1 year ago

Hi ,I am facing a same issue and don't able to solve this . can anyone tell me what is the solution and why you closed this issue ?

shirazz commented 1 year ago

@aryan-1911 Add props

international={true}
countryCallingCodeEditable={false}

More details : https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/4