p-dropdown: FilterBy multiple values is not working #14492
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
This was previously working. However since upgrading to 17.2.0 the filterBy property seems to be ignored and the optionLabel field is the only one that gets searched.
Here is an image of the stackblitz that demonstrates the issue:
Note filterBy is set to filter by code and name but only name gets searched (and name is the value that is in the OptionLabel attribute).
Here is the dropdown code:
Here is the link to the stackblitz: https://stackblitz.com/edit/1n452r?file=src%2Fapp%2Fdemo%2Fdropdown-filter-demo.html
Environment
Im using 17.2.0 but in the stackblitz above it is 17.3.1 and still the same issue.
Reproducer
https://stackblitz.com/edit/1n452r?file=src%2Fapp%2Fdemo%2Fdropdown-filter-demo.html,package.json
Angular version
17.0.7
PrimeNG version
17.2.0
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
20.10
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
As per the API, and the way that the component previously functioned, the filterBy attribute should allow you to specify multiple values to filter the dropdown by
The text was updated successfully, but these errors were encountered: