-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter is not working in ListBox Component and Dropdown Component with SelectItem type #15864
Comments
Same observation in my code using ListBox with filter and SelectItem array as options @angular/[email protected] |
Hi, SelectItem type is not related to the listbox component's internal logic. To use filter functionality, you should provide a filterField or optionLabel property. I am closing the issue since it's not a bug. |
Okey, thank you. In previous versions, |
I am confused. See https://stackblitz.com/edit/j5s22b-iaamnd. For Dropdown it just works and there is no need for |
Describe the bug
When options are SelectItem type, filter is not working in ListBox and Dropdown Component.
Listbox options:
Filter options:
Environment
Ubuntu 20.04.6 LTS
Reproducer
https://stackblitz.com/edit/j5s22b?file=src%2Fapp%2Flistbox-filter-demo.html
Angular version
17.3.11 or 18.0.1
PrimeNG version
17.18.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.13.0
Browser(s)
Firefox 126
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: