Skip to content
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

Added mask with place holder functionality #464

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
mask with custom only if customPlaceholder not provided == MaskAsYouT…
…ype given preference
  • Loading branch information
SalmanQureshi97 committed Sep 7, 2022
commit 82a5b9477e80cdaee4e420734a94e91de57f10f0
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class NgxIntlTelInputComponent implements OnInit, OnChanges {
this.value = this.removeDialCode(intlNo);
}

if (this.maskPlaceholder) {
if (this.maskPlaceholder && !this.customPlaceholder) {
this.phoneNumber = this.maskWithPlaceholder();
} else if (this.maskAsYouType) {
this.phoneNumber = this.maskAsYouTypeFormatter(
Expand Down