// make sure their buttons array is removed from the options
// and we create a new array for the alert's two buttons
selectOptions.buttons = [{
text: this.cancelText,
role: 'cancel',
handler: () => {
this.ionCancel.emit(null);
}
}];
it was the wrong property, it is not checked but selected. I don’t know if I read the wrong thing or if the documentation changed yesterday? Nevertheless using selected works
As I can see from the link for the source code you send me. The custom buttons set are ALWAYS overwritten from the open() function. So we can not set custom buttons, but reading the documentation we should?
Reading AlertController API docs we can set also buttons, but this would be overwritten from open function.