vue-tel-input
vue-tel-input copied to clipboard
Not updating default country dynamically.
Unable to set the country, it is set only once based on location but cannot be changed dynamically based on the current data record that is being edited. I've handled that issue using a custom way. But, USA and Canada have the same dial code and when I change it from USA to Canada it does not change and is kept as selected USA always. Please let me know how do I address this issue.
I have a similar issue to this in that i'm using it on a contcat form to keep a tel number. So if the user goes to the contact page, selects UK+44 flag and adds their numver the number gets prefixed with +44XXXXXXXX adn the flag is Uk+44. but then when they navigate away and come back the flag is then the "default country flag" of USA+1. How do I get this to deafult to the selected/ saved flag?
@spormeon did you find any solution? I have same issue that the edit control not setting country code on edit form.
for vue 3 change activeCountryCode const vTelInput = ref(null); vTelInput.value.activeCountryCode = "TR"