ngx-intl-tel-input Repopulating issue

Discussão em 'Angular' iniciado por S Siva, Junho 19, 2025.

  1. S Siva

    S Siva Guest

    I have page where it is of the phone number, i have an edit option,when i try to edit the data need of the phone number which is previous is added is fetched here, but the country flag doesnt change even though i have given conditions in the .ts component of this,If anyone have a solution please share it with me

    Problem: When ever i edit , a default country code is set, even though the API is giving another country code

    <ngx-intl-tel-input [preferredCountries]="preferredCountries" [enableAutoCountrySelect]="enableAutoCountrySelect"
    [enablePlaceholder]="true" [searchCountryFlag]="true"
    [searchCountryField]="[SearchCountryField.Iso2,SearchCountryField.Name]"
    [selectFirstCountry]="false" [maxLength]="10"
    [phoneValidation]="true" [separateDialCode]="true"
    [numberFormat]="PhoneNumberFormat.National" name="phone" [(ngModel)]="searchData">
    </ngx-intl-tel-input>

    Continue reading...

Compartilhe esta Página