How do I access the click event on the OK button in an ion-select? I want to save all the selected items only when the user clicks OK.
Thanks,
Donnie
How do I access the click event on the OK button in an ion-select? I want to save all the selected items only when the user clicks OK.
Thanks,
Donnie
Nevermind. figured it out. ionChange only fires if the ok button is clicked. I didn’t realize the select change was linked to the alert ok button.
<ion-select [id]="'entities'+i" multiple="true" (ionChange)="onEntityChange($event,i)" cancelText="Cancel" okText="Select">
<ion-option *ngFor="let word of item['words']; let j = index" [value]="word['text']" >{{word['text']}}</ion-option>
</ion-select>