Skip to content

Commit

Permalink
Fixed the issue #35.
Browse files Browse the repository at this point in the history
  • Loading branch information
César Mendonça committed Jun 29, 2017
1 parent d90db34 commit 4ce20d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/currency-mask.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ export class CurrencyMaskDirective implements AfterViewInit, ControlValueAccesso
this.inputHandler = new InputHandler(this.elementRef.nativeElement, (<any>Object).assign({}, this.optionsTemplate, this.options));
}

@HostListener("blur", ["$event"])
handleBlur(event: any) {
this.inputHandler.getOnModelTouched().apply(event);
}

@HostListener("cut", ["$event"])
handleCut(event: any) {
if (!this.isChromeAndroid()) {
Expand Down

0 comments on commit 4ce20d5

Please sign in to comment.