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
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 :wink: