add an id in your button or any things and remove it in your angular function , example :
in html :
<button #but (click)="delete(but)" >OK</button>
in angular :
delete(Button: Element) {
Button.remove();
}
Please do not take the advice in the previous post.
To OP: use either the action-sheet or popover interfaces documented here:
The action-sheet and popover interfaces do not have an OK button, clicking on any of the options will automatically close the overlay and select that value.
1 Like
For some reason the popover interface isn’t working for me (I still have the OK, Cancel buttons):
<ion-select interface="popover" [(ngModel)]="selectedPeriodId" (ionChange)="onPeriodChange()">
<ion-option *ngFor="let period of periods" [value]="period.id">{{period.name}}</ion-option>
</ion-select>
1 Like
what about interface=“action-sheet” it is worked for me