Harvest-Dev / ng-select2

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

Dropdown automatically closes when value is set #58

Open hwmetzger opened 10 months ago

hwmetzger commented 10 months 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 7 months ago

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