ng-multiselect-dropdown icon indicating copy to clipboard operation
ng-multiselect-dropdown copied to clipboard

Dropdown closes after each selection with singleSelection set to false

Open motohead400 opened this issue 3 years ago • 10 comments

Angular Version: 10.2.5:

Dropdown version: 0.3.4:

I have singleSelection set to false for the dropdown settings but it still closes after each selection. I can still select multiple options but I have to click to open it back up after every selection:

Setup dropdown with below settings:

For dropdown to stay open while user is clicking options:

Dropdown closes after each selection is checked:

Any relevant code: Settings object: this.dropdownSettings = { singleSelection: false, idField: 'Id', textField: 'Description', selectAllText: 'Select All', unSelectAllText: 'UnSelect All', itemsShowLimit: 10, allowSearchFilter: true };

Call in template <ng-multiselect-dropdown [placeholder]="'Product Categories'" [settings]="dropdownSettings" [data]="categoriesForProductAssociation" [(ngModel)]="selectedProduct.Categories" name="productCategories" #productCategories="ngModel"> </ng-multiselect-dropdown>

motohead400 avatar Aug 30 '21 18:08 motohead400

Hi, have you found a solution to solve this bug ? Simon.

PlatiScript avatar Sep 21 '21 09:09 PlatiScript

Nope, haven't had a chance to dig any deeper into it.

motohead400 avatar Sep 21 '21 13:09 motohead400

Any update?

harshaldhake123 avatar Sep 30 '21 13:09 harshaldhake123

Any update?

did that issue resolve?

I'm also facing the same issue

dipaliwagh30 avatar Jul 14 '22 11:07 dipaliwagh30

I am also facing this issue, please suggest any solution

ashinamu avatar Apr 14 '23 15:04 ashinamu

try version 0.2.10

ashinamu avatar Apr 14 '23 16:04 ashinamu

I am also facing same issue initially it was working fine then i implemented the filter sorting in that , after that it is closing immidiately the dropdown after selection and deselection. i have updated the version of that library, i tried to use the closeDropDownOnSelection property in the dorpdown settings too still it is troubling me

sadeveloper2000 avatar Mar 04 '24 08:03 sadeveloper2000

I am also facing this issue. Why is this not resolved even though it was opened years ago

Sriyanshjain27 avatar Mar 25 '24 20:03 Sriyanshjain27

@sadeveloper2000 did you achieve a work around?

Sriyanshjain27 avatar Mar 25 '24 20:03 Sriyanshjain27

@Sriyanshjain27 I switched to https://github.com/ng-select/ng-select and it works perfectly.

motohead400 avatar Mar 25 '24 20:03 motohead400