-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on United Kingdom number 7911 123456 #260
Comments
Looks like you're right. We are using the latest To fix this we will need to update The problem is that it breaks a lot of things in our library if just dropped in. |
if you update with intl-tel-input latest version. you need to add prefix iti__ in classes which belongs to intl-tel-input <div class="iti__flag" [ngClass]="selectedCountry?.flagClass" [tooltip]="selectedCountry ? selectedCountry[tooltipField] : ''"> <div *ngIf="separateDialCode" class="selected-dial-code">+{{selectedCountry.dialCode}} <div *dropdownMenu class="dropdown-menu country-dropdown"> <div class="search-container" *ngIf="searchCountryFlag && searchCountryField"> <input id="country-search-box" [(ngModel)]="countrySearchText" (keyup)="searchCountry()" (click)="$event.stopPropagation()" [placeholder]="searchCountryPlaceholder" autofocus> <ul class="iti__country-list" #countryList> <li class="iti__country" *ngFor="let country of preferredCountriesInDropDown" (click)="onCountrySelect(country, focusable)" [id]="country.iso2"> <div class="iti__flag" [ngClass]="country.flagClass"> {{country.name}} +{{country.dialCode}} <li class="divider" *ngIf="preferredCountriesInDropDown?.length"> <li class="iti__country" *ngFor="let country of allCountries" (click)="onCountrySelect(country, focusable)" [id]="country.iso2"> <div class="iti__flag" [ngClass]="country.flagClass"> {{country.name}} +{{country.dialCode}} <input type="tel" [id]="inputId" autocomplete="off" [ngClass]="cssClass" (blur)="onTouched()" (keypress)="onInputKeyPress($event)" [(ngModel)]="phoneNumber" (ngModelChange)="onPhoneNumberChange()" [disabled]="disabled" [placeholder]="separateDialCodePlaceHolder(selectedCountry?.placeHolder || '')" [attr.maxLength]="maxLength" [attr.validation]="phoneValidation" #focusable> ` |
Any plan on updating this? There are multiple phone numbers that are invalid for this library because of an outdated version of intl-tel-input, which makes the package unusable in production. |
The underlying libphonenumber validates 7911123456 of United Kingdom to "true" while the stackblitz demo of ngx-intl-tel-input fails.
I've verified the same at http://libphonenumber.appspot.com/
Phone number : 7911123456
Default Country : GB ( CLDR two-letter region code)
The text was updated successfully, but these errors were encountered: