From 7422eaba1d67776cc163b5c5a0e61cf38373ff6c Mon Sep 17 00:00:00 2001 From: ion-project Date: Thu, 18 Nov 2021 20:14:10 -0300 Subject: [PATCH] fix(MaskCore): ignore past event --- src/core.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core.ts b/src/core.ts index 23a14a3..d4366f5 100644 --- a/src/core.ts +++ b/src/core.ts @@ -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); @@ -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);