ng-multiselect-dropdown
ng-multiselect-dropdown copied to clipboard
Select All is changed to UnSelect All while searching in filter
Angular version: 8.2.2
ng-multiselect-dropdown version: latest, downloaded zip today (2/5/2020)
Description of issue: Select All is changed to UnSelect All while searching in filter. Note, this issue doesn't happen in demo page (https://nileshpatel17.github.io/ng-multiselect-dropdown/), but it happened when run code from unzipped project
Steps to reproduce: run "ng serve", then select "Pune" and "Navsari", then in filter, type "ne", "New Delhi" (unchecked) and "Pune" show up, meanwhile "Select All" is changed to "UnSelect All"
Expected result: should keep "Select All" because "New Delhi" is unchecked.
Actual result: "Select All" is changed to "UnSelect All"
Demo: Please share sample code link using StackBlitz or codesandbox
Any relevant code:
Any update on this? I am also facing this issue. If we apply search filter on unmatched data, it shows Unselect All option with checkbox checked. Angular version : 11.2.0 ng-multiselect-dropdown version: 0.2.14
Any update, I am also facing this issue with Angular 11 and dropdown v0.2.14. The issue needs minor fix, it's checking allOptions.length === selectedOptions.length to check the select all/deselect all checkbox, but in this case both are 0 and it should not return true.