webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 333 forks source link

Not searching when typing `+` with the DialCode #461

Open JonataCSantos opened 2 years ago

JonataCSantos commented 2 years ago

Steps to reproduce

  1. It's only searching when I type only the number, if I type +55, it doesn't work.

Expected behaviour

Should search in all cases, ignoring +

Actual behaviour

It doesn't search at all

Initialisation options

 <ngx-intl-tel-input
    [attr.data-cy]="dataCyId"
    [preferredCountries]="[
      CountryISO.UnitedStates,
      CountryISO.Nigeria,
      CountryISO.UnitedKingdom,
      CountryISO.Kenya,
      CountryISO.Canada,
      CountryISO.India,
      CountryISO.SouthAfrica,
      CountryISO.Germany
    ]"
    [enableAutoCountrySelect]="true"
    [enablePlaceholder]="true"
    [searchCountryFlag]="true"
    [searchCountryField]="[SearchCountryField.All]"
    [selectFirstCountry]="false"
    [selectedCountryISO]="CountryISO.UnitedStates"
    [numberFormat]="PhoneNumberFormat.International"
    [separateDialCode]="true"
    [maxLength]="15"
    [phoneValidation]="true"
    [inputId]="id"
    [formControl]="control"
    [class.custom-has-error]="hasPhoneError"
    class="form-control p-0"
  ></ngx-intl-tel-input>

image

image