Skip to content

Commit b812e49

Browse files
committed
fix(mask): set default placeholder properly #0
1 parent 283d4fa commit b812e49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/igniteui-angular/src/lib/directives/mask/mask.directive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ export class IgxMaskDirective implements OnInit, AfterViewChecked, ControlValueA
153153

154154
/** @hidden */
155155
public ngOnInit(): void {
156-
this.renderer.setAttribute(this.nativeElement, 'placeholder',
157-
this.placeholder ? this.placeholder : this.maskOptions.format);
156+
if (!this.nativeElement.placeholder) {
157+
this.renderer.setAttribute(this.nativeElement, 'placeholder', this.maskOptions.format);
158+
}
158159
}
159160

160161
/**

0 commit comments

Comments
 (0)