Skip to content

Commit

Permalink
Fixed #1868
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Feb 6, 2017
1 parent 3a55572 commit 28b767b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/inputmask/inputmask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class InputMask implements AfterViewInit,OnDestroy,ControlValueAccessor {
this.value = value;

if(this.input) {
if(this.value == undefined || this.value == null || this.len == this.value.length) {
if(this.value == undefined || this.value == null) {
this.input.value = '';
}
else {
Expand Down Expand Up @@ -454,7 +454,7 @@ export class InputMask implements AfterViewInit,OnDestroy,ControlValueAccessor {
}
}

writeBuffer() {
writeBuffer() {
this.input.value = this.buffer.join('');
}

Expand Down

0 comments on commit 28b767b

Please sign in to comment.