Skip to content

Commit

Permalink
Merge pull request #1729 from bcgov/bug/TCVP-2875
Browse files Browse the repository at this point in the history
TCVP-2875: Phone Number Masking Issue
  • Loading branch information
saikrishnametpalli-nttdata authored Mar 28, 2024
2 parents db332e4 + c7a32f0 commit c9ed950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ <h4><b>Contact details</b></h4>
}}</mat-label>
<input *ngIf="isCA || isUSA" matInput formControlName="home_phone_number" mask="(000) 000-0000"
[showMaskTyped]="true" />
<input *ngIf="!isCA && !isUSA" matInput formControlName="home_phone_number" mask="00000000000000000000" />
<input *ngIf="!isCA && !isUSA" matInput formControlName="home_phone_number" mask="99999999999999999999" />
<mat-error *ngIf="form.controls.home_phone_number?.hasError('phone')">Must be a valid phone number
</mat-error>
</mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h4>Who are we contacting?</h4>
<input matInput formControlName="homePhoneNumber" mask="(000) 000-0000"
*ngIf="form.get('addressCountryId').value === canada.ctryId || form.get('addressCountryId').value === usa.ctryId"
[showMaskTyped]="true" />
<input matInput formControlName="homePhoneNumber" mask="00000000000000000000"
<input matInput formControlName="homePhoneNumber" mask="99999999999999999999"
*ngIf="form.get('addressCountryId').value !== canada.ctryId && form.get('addressCountryId').value !== usa.ctryId" />
<mat-error *ngIf="form.get('homePhoneNumber')?.hasError('phone')">Must be a valid phone number
</mat-error>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ <h4>{{ "label.who_contacting" | translate }}</h4>
<input matInput formControlName="homePhoneNumber" mask="(000) 000-0000" (change)="onFieldChange()"
*ngIf="form.get('addressCountryId').value === canada.ctryId || form.get('addressCountryId').value === usa.ctryId"
[showMaskTyped]="true" />
<input matInput formControlName="homePhoneNumber" mask="00000000000000000000" (change)="onFieldChange()"
<input matInput formControlName="homePhoneNumber" mask="99999999999999999999" (change)="onFieldChange()"
*ngIf="form.get('addressCountryId').value !== canada.ctryId && form.get('addressCountryId').value !== usa.ctryId" />
<mat-error *ngIf="form.get('homePhoneNumber')?.hasError('phone')">{{ "error.phone_number" | translate }}
</mat-error>
Expand Down

0 comments on commit c9ed950

Please sign in to comment.