multiselect: filter not working #14835
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The multiselect filter is not working anymore when the options passed to the component are class based (e.g. instances of a class named
City
).The bug was introducted with this commit ed2c867
The check for
ObjectUtils.isObject(options[0])
fails for class based options, sinceoptions[0].constructor === Object
evaluates to false.Environment
see below
Reproducer
https://stackblitz.com/edit/github-97dcah?file=src%2Fapp%2Fapp.component.ts
Angular version
17.1.2
PrimeNG version
17.7.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
filter should also work with class based objects
The text was updated successfully, but these errors were encountered: