Table: Filtering in typescript using the Table filter() breaks the p-columnFilter #16603
Labels
Resolution: Help Wanted
Issue or pull request requires extra help and feedback
Milestone
Describe the bug
I have a table, with columns and lines.
The table contains some
<p-columnFilter>
filtering component.When I filter only on the
<p-columnFilter>
UI, everything is working fine.But when I filter from the typescript using the table
filter()
function, the table is filtered, but the<p-columnFilter>
UI is completely broken !With this error :
Here is the html
This works fine
But when I use the filtering in Typescript side:
This breaks the Filtering UI:
With this error:
So the filtering UI is not working anymore ...
Environment
Windows 11
Angular 18
Primeng 17.18.11
(I reused the table code from the Primeng example)
Reproducer
https://stackblitz.com/edit/gsfshm?file=src%2Fapp%2Ftable-filter-advanced-demo.ts
Angular version
18.0.1
PrimeNG version
17.18.11
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.15.0
Browser(s)
Microsoft edge
Steps to reproduce the behavior
Click on the Filtering icon on the Name Column:
You will see the Filtering UI
If you want to check the working state; comment the line in the ngAfterViewInit()
Expected behavior
The expected behavior is the Filter UI of
<p-columnFilter>
should remain working even if we did the filter in typescript sideThe text was updated successfully, but these errors were encountered: