Skip to content

Commit

Permalink
fix(MaskCore): ignore past event
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcursino committed Nov 18, 2021
1 parent 5d5739a commit 7422eab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class MaskCore {

private init() {
this.el.addEventListener('input', this.inputFunc);
this.el.addEventListener('paste', this.inputFunc);
this.el.addEventListener('focus', this.focusFunc);
this.el.addEventListener('blur', this.blurFunc);
this.el.addEventListener('mouseover', this.mouseoverFunc);
Expand All @@ -67,7 +66,6 @@ export class MaskCore {

destroy() {
this.el.removeEventListener('input', this.inputFunc);
this.el.removeEventListener('paste', this.inputFunc);
this.el.removeEventListener('focus', this.focusFunc);
this.el.removeEventListener('blur', this.blurFunc);
this.el.removeEventListener('mouseover', this.mouseoverFunc);
Expand Down

0 comments on commit 7422eab

Please sign in to comment.