You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to hide the prefix, I think is the default of how react-phone-input used to work, and I think it serves multiple use cases.
Expected result:
Been able to type on the input, without changing the selected country. right now, if I have US selected (+1 dial code), and i auto fill the input with 545 544 5454 for example, it will auto select another country(the one with +54 in front).
What I think should happen is, whatever I type, the country should not change, maybe enable a prop for this, or make it the default behaviour of disableCountryCode. Ex: I have US selected, I type 454 454 4545, the input should reflect the US flag and the input as 454 454 4545, but the the onChange should trigger onChange("+1 (454) 454 4545") or onChange("+14544544545").
The text was updated successfully, but these errors were encountered:
There is no way to hide the prefix, I think is the default of how react-phone-input used to work, and I think it serves multiple use cases.
Expected result:
Been able to type on the input, without changing the selected country. right now, if I have US selected (+1 dial code), and i auto fill the input with
545 544 5454
for example, it will auto select another country(the one with +54 in front).What I think should happen is, whatever I type, the country should not change, maybe enable a prop for this, or make it the default behaviour of
disableCountryCode
. Ex: I have US selected, I type454 454 4545
, the input should reflect the US flag and the input as454 454 4545
, but the theonChange
should triggeronChange("+1 (454) 454 4545")
oronChange("+14544544545")
.The text was updated successfully, but these errors were encountered: