Skip to content

Commit

Permalink
Merge pull request #15967 from primefaces/issue-15531
Browse files Browse the repository at this point in the history
Fixed #15531 - KeyFilter | No longer working on chips component
  • Loading branch information
cetincakiroglu committed Jul 11, 2024
2 parents 93bc7a1 + e2df584 commit a88ce3d
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 @@ -225,7 +225,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 a88ce3d

Please sign in to comment.