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

Weird behavior when switching countries #76

Open
paddotk opened this issue Jan 24, 2022 · 0 comments
Open

Weird behavior when switching countries #76

paddotk opened this issue Jan 24, 2022 · 0 comments

Comments

@paddotk
Copy link

paddotk commented Jan 24, 2022

I'm using v.1.5.0.

Assuming you've not entered anything in the input field yet, and the country code is displayed (by default) in the input field, then when switching between most countries, the country code updates appropriately. However, if I switch from a country that has a 4-digit country code to another country, the code shows very strange behavior. When switching to a 2- or 3-digit country, the updated input value is +<new country code> <old country code>. If I change to another 4-digit country instead the code doesn't get updated at all.

When I switch countries in the dropdown, the @input event is always triggered; which, I believe, should only trigger @country-changed in the first place. The issue with this as well is that we can't check whether it's the country dropdown, or the text field, that triggered the @input event.

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