catamphetamine / react-phone-number-input

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

The country code is duplicated when you enter the number before + #437

Closed Rekk1d closed 6 months ago

Rekk1d commented 6 months ago

Hi @catamphetamine! When I put the cursor in front of the + and enter the phone number, the country code is duplicated. smartCaret doesn't fix this problem Demo: https://skrinshoter.ru/vNTg8KgpepN Code: <PhoneInput onChange={onChange} value={defaultValue} countries={['RU', 'BY']} defaultCountry="RU" international addInternationalOption={false} className={styles.phone} countryCallingCodeEditable={false} focusInputOnCountrySelection={false} limitMaxLength {...rest} />

catamphetamine commented 6 months ago

published react-phone-number-input@3.3.8.