diff --git a/src/app/components/keyfilter/keyfilter.ts b/src/app/components/keyfilter/keyfilter.ts index 546e7ff9f7d..6846e6b175c 100644 --- a/src/app/components/keyfilter/keyfilter.ts +++ b/src/app/components/keyfilter/keyfilter.ts @@ -195,7 +195,7 @@ export class KeyFilter implements Validator { onPaste(e) { const clipboardData = e.clipboardData || (window).clipboardData.getData('text'); if (clipboardData) { - const pastedText = clipboardData; + const pastedText = clipboardData.getData('text'); if (!this.regex.test(pastedText)) { e.preventDefault(); }