You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the prop :input-options="{showDialCode: true}" the the phone number in the v-model is changed to +undefined if the number already contains a country code when the component is loaded.
Expected behavior
The number should not be changed and the flag should be set according to the country code of the number
Versions
Libraries:
vue-tel-input-vuetify version: 1.5.3
vue version: 2.7.14
Environment:
Device: Framework Laptop
OS: NixOS 22.11
Browser: Firefox
Browser Version: 112.0
Additional context
PR incoming 😉
The text was updated successfully, but these errors were encountered:
x3rAx
added a commit
to x3rAx/vue-tel-input-vuetify
that referenced
this issue
Apr 20, 2023
x3rAx
changed the title
Existing phone number becomes +undefined when using :input-options="{showDialCode: true}"
Existing phone number becomes +undefined when using showDialCode: trueApr 20, 2023
Looks like this only happens if the data is passed to the component before the mounted() hook runs, if you leave the component alone until then - everything is fine!
Current behavior
When adding the prop
:input-options="{showDialCode: true}"
the the phone number in thev-model
is changed to+undefined
if the number already contains a country code when the component is loaded.Expected behavior
The number should not be changed and the flag should be set according to the country code of the number
Versions
Libraries:
Environment:
Additional context
PR incoming 😉
The text was updated successfully, but these errors were encountered: