Skip to content

Commit 56b0de4

Browse files
authored
fix: Error after tabbing to the country field (#469)
1 parent 95a111b commit 56b0de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/vue-tel-input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@
613613
choose(sortedCountries.value[data.selectedIndex]);
614614
}
615615
data.open = !data.open;
616-
} else {
616+
} else if (data.open) {
617617
// typing a country's name
618618
data.typeToFindInput += e.key;
619619
clearTimeout(data.typeToFindTimer);

0 commit comments

Comments
 (0)