Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to hide the prefix #128

Open
luisiacc opened this issue Feb 3, 2022 · 0 comments
Open

There is no way to hide the prefix #128

luisiacc opened this issue Feb 3, 2022 · 0 comments

Comments

@luisiacc
Copy link

luisiacc commented Feb 3, 2022

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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant