Skip to content

Commit ece6c94

Browse files
authored
fix: country uncertain updation behaviour (#422)
1 parent 258d277 commit ece6c94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/vue-tel-input.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@
324324
}
325325
})
326326
watch(() => phoneObject.value.countryCode, (value) => {
327-
data.activeCountryCode = value;
327+
if(value) {
328+
data.activeCountryCode = value;
329+
}
328330
})
329331
watch(() => phoneObject.value.valid, () => {
330332
emit('validate', phoneObject.value);

0 commit comments

Comments
 (0)