MultiSelect Component: deselecting a checkbox item after selectall is not properly binded and previous selected items get reset on using filters. #15516
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
This is in reference to the issue https://github.com/primefaces/primeng/issues/15294.
The selectAll functionality in Virtual Scroll with filter is working fine but deselection has not taken into account while resolving that issue. After filtering, selecting selectAll and then deselecting any item doesn't deselect the selectAll checkbox.
There is a concept of header checkbox template introduced for partial and all selections, but there is no proper information provided in the documentation, even both of their functions look the same. Please resolve this bug and update the documentation with proper examples.
Another bug, if we previously select any item and then search with some keywordand then selectAll, previously selected item gets removed from the selected list.
Environment
Angular CLI: 17.3.3
Angular: 17.3.2
Node: 20.9.0
zone.js: 0.14.4
Typescript: 5.2.2
Package Manager: npm 10.1.0
OS: win32 x64
Reproducer
No response
Angular version
17.3.2
PrimeNG version
17.11.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.9.0
Browser(s)
No response
Steps to reproduce the behavior
Bug1 :
Bug2:
Expected behavior
Bug 1:
Expected behavior is to select and deselect, both of which should be properly bound with the selectAll checkbox
Bug 2:
Expected behavior is that previously selected items without any filters should not get reset/removed, if we search for some items with filters and click on selectAll.
The text was updated successfully, but these errors were encountered: