Utilizing the ngx-intl-tel-input package in my Angular-12 project multistep has been quite promising. Below is a snippet of the code:
Component:
import {
SearchCountryField,
CountryISO,
PhoneNumberFormat
} from 'ngx-intl-tel-input';
export class SignupCompanyComponent implements OnInit {
// Component logic here
}
HTML:
<mat-horizontal-stepper [linear]="isLinear" #stepper labelPosition="bottom">
<mat-step [stepControl]="companyForm">
// HTML template for company form
</mat-step>
<mat-step [stepControl]="idForm">
// HTML template for ID form
</mat-step>
</mat-horizontal-stepper>
While inputting data, certain issues have arisen with the mobileNumber
field in ngx-intl-tel-input:
The users are able to exceed the specified 15-character
maxlength
.When the character count exceeds 15, the Next button gets disabled without any error indication, leading to user confusion.
I am seeking guidance on resolving these issues effectively. Any assistance would be greatly appreciated.
Thank you!