Component: Table #13965
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
The ObjectUtils.resolveFieldData method used to get the value based on the field and rowData allows field to be a function. However, when I pass field as a function, the filter method in the table component doesn't work. The problem is that the filter method in table component sets the filters object with field as a key and the value as the corresponding metadata. This makes the field function a string and we no longer get any filtered value as a result.
Environment
Production
Reproducer
No response
Angular version
16.1.1
PrimeNG version
16.15.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
14.15.1
Browser(s)
No response
Steps to reproduce the behavior
Pass field as a function in columns of table component
Expected behavior
All the functionality of the table component including filter should work as expected
The text was updated successfully, but these errors were encountered: