Skip to content

Commit

Permalink
Fix: Country search should not be case sensitive (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitGurbani committed May 24, 2024
1 parent f3f0d3a commit 95a111b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/vue-tel-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
if (!props.dropdownOptions.showSearchBox) {
return countriesList
}
const userInput = data.searchQuery;
const userInput = data.searchQuery.toLowerCase();
const cleanInput = userInput.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g, '');
return countriesList.filter(
Expand Down

0 comments on commit 95a111b

Please sign in to comment.