Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when search select all checkbox is select. #417

Open
Thamaraisevan opened this issue Dec 8, 2023 · 0 comments
Open

when search select all checkbox is select. #417

Thamaraisevan opened this issue Dec 8, 2023 · 0 comments

Comments

@Thamaraisevan
Copy link

Angular version:11

ng-multiselect-dropdown version:0.2.10

Description of issue:When no data is found during a search, the 'Select All' checkbox is selected by default. How can I restrict this behavior in the scenario where no data is found?

Steps to reproduce:

Expected result:When no data is found during a search, the 'Select All' checkbox remains unselected.

Actual result:When no data is found during a search, the 'Select All' checkbox is selected by default. How can I restrict this behavior in the scenario where no data is found?

Demo: Please share sample code link using StackBlitz or codesandbox

Any relevant code:

                    formControlName="userMultiselct" [data]="chatUsersList" [settings]="dropdownSettings"
                    [noDataLabel]="'No results matched your search!'" 
                    (onSelect)="onuserSelect($event)" (onDeSelect)="onuserDeSelect($event)" (onFilterChange)="onFilterChangeUser($event)"
                    (onSelectAll)="onSelectAllUsers($event)" (onDeSelectAll)="onUnSelectAllUsers()">
                  </ng-multiselect-dropdown>    dropdownSettings: any = {
    singleSelection: false,
    idField: 'user_id',
    textField: 'name',
    // textField: 'project_name',
    unSelectAllText: 'UnSelect All',
    enableSearchFilter: true,
    itemsShowLimit: 3,
    allowSearchFilter: true,
    noDataAvailablePlaceholderText: "No results matched your search!",
    allowRemoteDataSearch: false,
    selectAllText: 'Select All',
    clearSearchFilter: false,
    closeDropDownOnSelection:true,

  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant