Skip to content

Commit

Permalink
Merge pull request #7871 from yigitfindikli/kyfltr
Browse files Browse the repository at this point in the history
fixed #7729 KeyFilter is not working
  • Loading branch information
cagataycivici authored Jul 8, 2019
2 parents 2cd87fe + f407068 commit 67eb78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/keyfilter/keyfilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class KeyFilter implements Validator {
onPaste(e) {
const clipboardData = e.clipboardData || (<any>window).clipboardData.getData('text');
if (clipboardData) {
const pastedText = clipboardData;
const pastedText = clipboardData.getData('text');
if (!this.regex.test(pastedText)) {
e.preventDefault();
}
Expand Down

0 comments on commit 67eb78d

Please sign in to comment.