Hi, i have an alert controller which works very smooth on android but not in ios.
I dont know what would be the reason, Its not giving any error also.
let alert = this.alertCtrl.create({
title: "Submission of Order",
message: "Are you sure you want to submit",
buttons: [
{
text: "Cancel",
role: "cancel",
handler: () => {
console.log("Cancel clicked");
}
},
{
text: "Submit",
handler: () => {
console.log("Submit clicked");
alert.onDidDismiss(() => {
let loading = this.loadingCtrl.create({
content: "Please wait until the order gets displayed ....."
});
loading.present();
-
-
-
-
loading.dismiss()
})
}
}
]
)}
thats my code and whenever i try to click on submit button its calling the cancel handler.
Weird!!
Can anyone please help me with this issue.