Skip to content

Commit

Permalink
fix: ignored align in global config
Browse files Browse the repository at this point in the history
  • Loading branch information
BojanKogoj committed Jun 16, 2019
1 parent 9b262b3 commit 1af2dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/currency-mask.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class CurrencyMaskDirective implements AfterViewInit, ControlValueAccesso
}

ngAfterViewInit() {
this.elementRef.nativeElement.style.textAlign = this.options ? this.options.align : this.optionsTemplate.align;
this.elementRef.nativeElement.style.textAlign = this.options && this.options.align ? this.options.align : this.optionsTemplate.align;
}

ngDoCheck() {
Expand Down

0 comments on commit 1af2dd1

Please sign in to comment.