Skip to content

Commit

Permalink
fix #152
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR committed May 23, 2020
1 parent 5af8593 commit 6adc090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/imask/src/masked/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class Masked<MaskType> {

this.rawInputValue = rawInput;
// append lost trailing chars at end
if (this.value !== value && value.indexOf(this.value) === 0) {
if (this.value && this.value !== value && value.indexOf(this.value) === 0) {
this.append(value.slice(this.value.length), {}, '');
}

Expand Down

0 comments on commit 6adc090

Please sign in to comment.