ng2-select2 icon indicating copy to clipboard operation
ng2-select2 copied to clipboard

Select2 reset when data changed

Open ravindasenarath opened this issue 7 years ago • 1 comments

I'm having multiple ng-select2 elements with same data set and I want to remove items selected from one in the other. So once item is selected I modify data of second element removing it from data. Once this happened dropdown get reset and already selected value goes away ( module triggers a event for the default option as well.)

ravindasenarath avatar Aug 05 '17 16:08 ravindasenarath

it does not work either

<select2 name="unid" [data]="unids" [options]="optionsSelect2" class="inputSize" [(ngModel)]="product.unid" ngDefaultControl (valueChanged)="product.unid = $event.value"></select2>

How do I reset the data?

Hansel03 avatar Oct 17 '17 21:10 Hansel03