Skip to content
New issue

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

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

Already on GitHub? # to your account

Added defaultCountryByDialCode prop #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CharltonSantana
Copy link

Have added defaultCountryByDialCode prop, very similar to defaultCountry but uses dialCode
instead of iso2 for country map.
<vue-tel-input defaultCountryByDialCode="44" />

@CharltonSantana
Copy link
Author

Hey, please let me know if there's anything like naming etc that you'd prefer to be changed.

@iamstevendao
Copy link
Owner

@CharltonSantana I'm thinking we can use the defaultCountry prop and allow it to be both number and string. if it's a string we fetch the country by country code and if it's a number we use the dial code. What do you think?

@CharltonSantana
Copy link
Author

@iamstevendao Thank you for your patience on this. I think this is a good idea, I will get on it.

@Daniel4Digital
Copy link

This is a must feature for me. Any news @CharltonSantana? Will you rewrite your PR?

@ciaranpflanagan
Copy link

Is there any update on this PR? As mentioned above, we'd also find this would be very useful.

@antoci-alin
Copy link

Any updates for this one?

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

Successfully merging this pull request may close these issues.

5 participants