Props countryCodeEditable not working with United State (us)
Hi, I have an issue when the country is us (United State) and I set countryCodeEditable is false like this:
<PhoneInput country="us" countryCodeEditable={false} enableSearch />
But the country code can be removed and can not enter the new one. :(

Did I miss something? Please help me take a look! TIA
This issue is for all countries which have 1 digit in country code.

It did not happen in my other repo with v2.12.0, but this version is not support TS :|
The same issue is happening with my code, and it is leading the other issue as well. Once I remove the country code it additionally adds country code twice.
Same problem for me with US. @bl00mber any idea ?
Can you send/suggest a failing test?
I also face this issue. This issue can be seen in the demo (https://bl00mber.github.io/react-phone-input-2.html) as well with this configuration {"country":"us","countryCodeEditable": false}
I believe this could be a quick fix for the issue until a PR gets merged.
<PhoneInput
country='us'
value={input}
onKeyDown={(e) => {
if ((e.which === 8 || e.which === 46) && input.length <= 1) e.preventDefault();
}}
onChange={(value) => {
setInput(value);
}}
countryCodeEditable={false}
/>
Thank you for the above, it works. A permanent fix should be rolled out though, the prop is pretty useless since the fix is pretty much at work for all cases.