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 incorrect initializing country code by IP #112

Closed
wants to merge 5 commits into from

Conversation

softerboy
Copy link

The issue was that initizalizeCountry() calls method getCountry() which
mutates this.activeCountry and returns a promise and it doesn't wait for it (i.e. fire and forget).
If inputOptions prop's showDialCode is set to true it ignores country code fetched by current IP

The issue was that initizalizeCountry() calls method getCountry() which
mutates this.activeCountry and returns a promise and it doesn't wait for it (i.e. fire and forget).
If inputOptions prop's showDialCode is true it ignores country code fetched by current IP
@softerboy softerboy force-pushed the master branch 2 times, most recently from 84ffa17 to 81b874d Compare July 17, 2019 11:50
@iamstevendao
Copy link
Owner

@softerboy Thanks a lot for your help! Your changes included the other PR and there are changes in dist folder so I cherry-picked your commit that fixed the issue (154696b), I hope you don't mind.

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.

None yet

2 participants