mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(nav): correctly set zIndex when there's a previous view
This commit is contained in:
@@ -13,10 +13,6 @@ export class E2EPage {
|
||||
title: 'Not logged in',
|
||||
message: 'Sign in to continue.',
|
||||
buttons: [
|
||||
{
|
||||
text: 'Cancel',
|
||||
role: 'cancel'
|
||||
},
|
||||
{
|
||||
text: 'Sign in',
|
||||
handler: () => {
|
||||
@@ -45,7 +41,39 @@ export class E2EPage {
|
||||
</ion-content>
|
||||
`
|
||||
})
|
||||
class AnotherPage {}
|
||||
class AnotherPage {
|
||||
|
||||
constructor(private nav: NavController) {}
|
||||
|
||||
onPageDidEnter() {
|
||||
this.showConfirm();
|
||||
}
|
||||
|
||||
showConfirm() {
|
||||
const alert = Alert.create({
|
||||
title: `Hi there`,
|
||||
buttons: [
|
||||
{
|
||||
text: 'Go Back',
|
||||
role: 'cancel',
|
||||
handler: () => {
|
||||
alert.dismiss().then(() => {
|
||||
this.nav.pop();
|
||||
})
|
||||
}
|
||||
},
|
||||
{
|
||||
text: 'Stay Here',
|
||||
handler: () => {
|
||||
console.log('Stay Here');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
this.nav.present(alert);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@App({
|
||||
|
||||
Reference in New Issue
Block a user