intl-tel-input 25.1.0 → 25.2.0

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.1.0
2
+ * International Telephone Input v25.2.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -2595,10 +2595,6 @@ var factoryOutput = (() => {
2595
2595
  const selectedDialCode = this.selectedCountryData.dialCode;
2596
2596
  number = this._ensureHasDialCode(number);
2597
2597
  const dialCodeMatch = this._getDialCode(number, true);
2598
- if (dialCodeMatch && dialCodeMatch === this.prevDialCodeMatch) {
2599
- return null;
2600
- }
2601
- this.prevDialCodeMatch = dialCodeMatch;
2602
2598
  const numeric = getNumeric(number);
2603
2599
  if (dialCodeMatch) {
2604
2600
  const dialCodeMatchNumeric = getNumeric(dialCodeMatch);
@@ -2606,7 +2602,7 @@ var factoryOutput = (() => {
2606
2602
  if (!selectedIso2 && this.defaultCountry && iso2Codes.includes(this.defaultCountry)) {
2607
2603
  return this.defaultCountry;
2608
2604
  }
2609
- const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && numeric.length === dialCodeMatchNumeric.length;
2605
+ const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && (numeric.length === dialCodeMatchNumeric.length || !this.selectedCountryData.areaCodes);
2610
2606
  const isRegionlessNanpNumber = selectedDialCode === "1" && isRegionlessNanp(numeric);
2611
2607
  if (!isRegionlessNanpNumber && !alreadySelected) {
2612
2608
  for (let j = 0; j < iso2Codes.length; j++) {
@@ -3172,7 +3168,7 @@ var factoryOutput = (() => {
3172
3168
  attachUtils,
3173
3169
  startedLoadingUtilsScript: false,
3174
3170
  startedLoadingAutoCountry: false,
3175
- version: "25.1.0"
3171
+ version: "25.2.0"
3176
3172
  }
3177
3173
  );
3178
3174
  var intl_tel_input_default = intlTelInput;