Skip to content

Commit

Permalink
Merge pull request #14504 from primefaces/issue-14492
Browse files Browse the repository at this point in the history
Fixed #14492 - Dropdown |  FilterBy multiple values is not working
  • Loading branch information
cetincakiroglu authored Jan 10, 2024
2 parents 49897bb + bf01536 commit a9edfe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
}
return filteredOptions;
}

return options;
});

Expand Down Expand Up @@ -1660,7 +1661,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
}

searchFields() {
return this.filterFields || [this.optionLabel];
return this.filterBy.split(',') || this.filterFields || [this.optionLabel];
}

searchOptions(event, char) {
Expand Down Expand Up @@ -1746,3 +1747,4 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
declarations: [Dropdown, DropdownItem]
})
export class DropdownModule {}

0 comments on commit a9edfe6

Please sign in to comment.