The country code is duplicated when you enter the number before +
Rekk1d opened this issue · comments
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}
/>
published react-phone-number-input@3.3.8
.