Skip to content

Commit

Permalink
Fixed #15531 - KeyFilter | No longer working on chips component
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Jul 5, 2024
1 parent be604c0 commit e2df584
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/components/keyfilter/keyfilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ export class KeyFilter implements Validator {
if (!browser.mozilla && (this.isSpecialKey(e) || !cc)) {
return;
}
let val = this.el.nativeElement.value + cc;

let valueCheck = this.el.nativeElement.value || '';

let val = valueCheck + cc;

ok = (<RegExp>this.regex).test(val);

if (!ok) {
Expand Down

0 comments on commit e2df584

Please sign in to comment.