Skip to content

Commit

Permalink
fix: country uncertain updation behaviour (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
neha-proxima authored May 22, 2024
1 parent 258d277 commit ece6c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/vue-tel-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@
}
})
watch(() => phoneObject.value.countryCode, (value) => {
data.activeCountryCode = value;
if(value) {
data.activeCountryCode = value;
}
})
watch(() => phoneObject.value.valid, () => {
emit('validate', phoneObject.value);
Expand Down

0 comments on commit ece6c94

Please sign in to comment.