iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
813 stars 339 forks source link

flag and number keep changing, vue3 #361

Open spormeon opened 2 years ago

spormeon commented 2 years ago

Hi

I save a number such as: Adysis_-_Media_Online_-_Stats_Management

if i refresh the page, or go to another page then back to the page with the number , it has chnaged to: Adysis_-_Media_Online_-_Stats_Management

this new number that appears is actually for the country im in ( uk ) but i have the disabledFetchingCountry: true,

so its making no sense as to why its "changing" the number to the country code im in, i just want it to display back the 1st number i entered/ saved

these are my settings: Main_vue_—_statsadysis

I'm actually able to see this 1st number in an "admin" screen, for that saved number/ user, so its def saving the right number and the bindProps settings on this page are axactly the same, i.e disabledFetchingCountry: true, Adysis_-_Media_Online_-_Stats_Management

I can actually also sometime see the number change in the admin, it will start with the original number, then after about a second it will switch to GB flag and +44 instead of the flag and dial code which was saved

Anyone got any ideas whats happening?

spormeon commented 2 years ago

UPDATE: I think i might of sorted this out by setting defaultCountry: 'US', why you have to set a default country i got no clue, dont seem very logically to me, but hey it seems to work, fingers crossed