You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2022. It is now read-only.
Current behavior:
I have an action sheet into my project and opening an alert control by selecting the action sheet button. the alert box open but while clicking the alert button then alert control is not dismissing/closing itself. it always stays on the page.
Expected behavior:
The alert control should be dismissed/close after pressing the Agree/Disagree button.
Steps to reproduce:
add an action sheet into one of ionic page
add the alert control into that page.
open an alert control using action sheet button.
try to close the alert control using one of agree disagree button
Related code:
presentActionSheet() {
let self = this;
let actionSheet = this.actionSheetCtrl.create({
title: 'Modify your album',
buttons: [
{
text: 'Destructive',
role: 'destructive',
handler: () => {
console.log('Destructive clicked');
self.showConfirm();
}
},{
text: 'Archive',
handler: () => {
console.log('Archive clicked');
self.showConfirm();
}
},{
text: 'Cancel',
role: 'cancel',
handler: () => {
console.log('Cancel clicked');
}
}
]
});
actionSheet.present();
}
showConfirm() {
let confirm = this.alertCtrl.create({
title: 'Use this lightsaber?',
message: 'Do you agree to use this lightsaber to do good across the intergalactic galaxy?',
buttons: [
{
text: 'Disagree',
handler: () => {
console.log('Disagree clicked');
confirm.dismiss();
}
},
{
text: 'Agree',
handler: () => {
console.log('Agree clicked');
confirm.dismiss();
}
}
]
});
confirm.present();
}
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ x] 3.x
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I have an action sheet into my project and opening an alert control by selecting the action sheet button. the alert box open but while clicking the alert button then alert control is not dismissing/closing itself. it always stays on the page.
Expected behavior:
The alert control should be dismissed/close after pressing the Agree/Disagree button.
Steps to reproduce:
Related code:
https://drive.google.com/open?id=0B6aMbU1-vMowSVRvU0JQdk1SZ0U
https://drive.google.com/open?id=0B6aMbU1-vMowRjJQQ0M0R0JtUEU
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):global packages:
local packages:
System:
The text was updated successfully, but these errors were encountered: