Skip to content

Component: Table - p-columnFilter of type boolean doesn't show state correctly #17817

Open
@zumoberhaus

Description

@zumoberhaus

Describe the bug

If you filter for only true, it filters the table correctly.
But after open the menu again, it doesn't display the checkbox as selected as it should for the active true filter.
The checkbox is completely reseted.

For the other types of filters you can open the menu again and it shows the correct selected filter.

In previous primeng versions there were an "active" css class for the icon, too.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/nmim5qj1?file=package.json

Environment

https://primeng.org/table#filter-advanced
just use the original demo site with any browser

Angular version

19.1.6

PrimeNG version

v19

Node version

20.18.2

Browser(s)

No response

Steps to reproduce the behavior

Go to the original example https://primeng.org/table#filter-advanced
Filter the "Verified"-Column for "true"
"Apply" the filter and the menu will close.
Open the filter menu again
You see now, that the checkbox isn't selected, although the filter is still set.

Expected behavior

Checkbox inside the menu should represent the correct state of the filter

The icon or button of the columnfilter should have a class like "active" that represent the active state of the filter like in previous primeng versions

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

Status

Review

Relationships

None yet

Development

No branches or pull requests

Issue actions