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

(BUG) Wrong country set on load #162

Open
ghostlexly opened this issue Oct 15, 2021 · 4 comments
Open

(BUG) Wrong country set on load #162

ghostlexly opened this issue Oct 15, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@ghostlexly
Copy link

Describe the bug

If we set a value as "+262781208080" on the v-model and the browser's country is +33, when the input finish loading, it's will set back the browser's country code (+33) instead of (+262) which we sent on the v-model.

Steps to reproduce

  1. Set "+262781208080" as value in the v-model for Reunion country.
  2. Change browser's country to another country (like France for +33)
  3. Reload the page

The country will be set back to France +33 instead of Reunion.

Expected behavior

Use the setten country's code (Reunion) instead of the browser's one.
If no value is set, use the browser's country.

@ghostlexly ghostlexly added the bug Something isn't working label Oct 15, 2021
@keXXpert
Copy link

Same issue here

@LouisMazel
Copy link
Owner

Hi guys,

This package is unmaintened
A new version of this plugin is available on my new library Maz-UI

@gabibora
Copy link

to quick fix this use this props with no default country prop set and will work

 :fetch-country="false"
 :no-use-browser-locale="true"   

@merlokk
Copy link

merlokk commented Apr 17, 2023

the last one works)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants