Harvest-Dev / ng-select2

A select2 for Angular
MIT License
55 stars 32 forks source link

Dropdown automatically closes when value is set #58

Open hwmetzger opened 1 year ago

hwmetzger commented 1 year ago

I am using Angular 16 and this is my template...

<select2 [id]="'select2'" name="select2" class="form-control" [data]="getSelect2Data(dbData$ | async)" [value]="selectedValue" (update)="updateSelect2($event)" [styleMode]="'noStyle'" (close)="onClose($event)" />

If selectedValue is null, I can click the dropdown and select an option as expected. However, if selectedValue is not null, when I click the dropdown flashes then immediately triggers the close event and closes.

noobcoder15 commented 9 months ago

I have the same problem and it makes the whole library useless for me. Any solution?