vue-tel-input icon indicating copy to clipboard operation
vue-tel-input copied to clipboard

Not updating default country dynamically.

Open mayuriTipl opened this issue 1 year ago • 3 comments

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.

mayuriTipl avatar Jun 05 '23 12:06 mayuriTipl

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 avatar Jun 08 '23 10:06 spormeon

@spormeon did you find any solution? I have same issue that the edit control not setting country code on edit form.

abhishekbhalani avatar Feb 12 '24 15:02 abhishekbhalani

for vue 3 change activeCountryCode const vTelInput = ref(null); vTelInput.value.activeCountryCode = "TR"

ycldz avatar Mar 11 '24 11:03 ycldz