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

Fix country updating and missing dialing codes #18

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

Conversation

priitd
Copy link

@priitd priitd commented Feb 16, 2018

This PR adds missing dialing codes for which a flag and name exists, but the dialing code did not and fixes the following bugs:

  • Country being updated wrongly in case of duplicate dial codes. For example, US and Canada both have the dial code 1, but selecting Canada and updating the number automatically selected the US flag instead. The new behavior is that if a selected country with the same dial code already exists, then the country flag will not be updated.

  • NPE when selecting a country flag while the input contained an invalid dial code, eg. +9. The nev behaviour is that the invalid content will be removed.

Fix NPE when changing flags with an invalid country code input
Fix flag being wrongly updated for duplicate dial codes
Add missing dialing codes
@priitd priitd force-pushed the fix-country-updating branch from cbade20 to c845022 Compare February 19, 2018 10:46
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

Successfully merging this pull request may close these issues.

1 participant