vue-tel-input 5.14.0 → 5.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -377,7 +377,7 @@ const defaultOptions = [...allProps].reduce((prv, crr) => {
377
377
  options: { ...defaultOptions
378
378
  }
379
379
  });
380
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=68d31ada&
380
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=2da290d5&
381
381
  var render = function render() {
382
382
  var _vm = this,
383
383
  _c = _vm._self._c;
@@ -459,6 +459,9 @@ var render = function render() {
459
459
  "click": function ($event) {
460
460
  $event.stopPropagation();
461
461
  },
462
+ "keydown": function ($event) {
463
+ $event.stopPropagation();
464
+ },
462
465
  "input": function ($event) {
463
466
  if ($event.target.composing) return;
464
467
  _vm.searchQuery = $event.target.value;
@@ -3867,7 +3870,9 @@ function getDefault(key) {
3867
3870
  return countriesList;
3868
3871
  }
3869
3872
 
3870
- return countriesList.filter(c => new RegExp(this.searchQuery, 'i').test(c.name) || new RegExp(this.searchQuery, 'i').test(c.iso2) || new RegExp(this.searchQuery, 'i').test(c.dialCode));
3873
+ const userInput = this.searchQuery;
3874
+ const cleanInput = userInput.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]|^0{2,}/g, '');
3875
+ return countriesList.filter(c => new RegExp(cleanInput, 'i').test(c.name) || new RegExp(cleanInput, 'i').test(c.iso2) || new RegExp(cleanInput, 'i').test(c.dialCode));
3871
3876
  },
3872
3877
 
3873
3878
  phoneObject() {