vue-phone-number-input
vue-phone-number-input copied to clipboard
(BUG) whenever form load in edit mode country code not get selected
Describe the bug
I input a phone number +923131234567 which was works fine but when I load my form in edit mode. the phone number input becomes +13131234567 the country code got to change and the country code dropdown does not change.
Steps to reproduce
input a phone number in vue-phone-number-input save your form load your form for the edit you will see the phone number loads but the country code will be changed.
Expected behavior
The phone number country code should be selected as we entered for example if I select +92 then it should be +92 in form edit mode. it should not be changed to +1.
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information)
https://prnt.sc/ti2zlx (Create Mode) https://prnt.sc/ti30p1 (Edit Mode)
- OS: Ubuntu(Linux)
- Browser: Chrome
- VueJS
Same issue for me.
@bali48 what do you put into v-model ? (VuePhoneNumberInput v-model="yourValue")
formattedNumber ? formatInternational ? e164 ?
Regards
@pairmix the value I set in the v-model is e164.
The same problem. @bali48 Did you find way to figure this out ?