intl_phone_field icon indicating copy to clipboard operation
intl_phone_field copied to clipboard

country code issue

Open Adelmu21 opened this issue 1 year ago • 1 comments

  • default is US, but the problem is that when i try to choose a country like Denmark it still prints out the code for US +1
  • and if i were to pick algeria it would print the code for algeria no problem in the format +213 which is perfect the previous bug issue is resolved but then i would pick a country like Denmark or Andorra and it prints the code for the previous result which is for me Algeria in this case
  • and if i were to pick another country at times it just resets back to the US +1 area code
  • lastly the search bar when i try to find a country it does a great job but when i try to click on it to use it, it doesnt update the field value at all.

Adelmu21 avatar Feb 23 '24 05:02 Adelmu21

I can confirm the above. It seems that the function to change country, does not affect the PhoneNumber model. The problem appears to be in the onChanged function. It creates a new PhoneNumber model which onCountryChanged does not have access to.

MarekLipskij avatar Mar 01 '24 16:03 MarekLipskij