Ionic2 tabs: using (ionSelect) to open ActionSheet
See original GitHub issueOn beta.11 I still have the problem with using ActionSheet on Tabs.
<ion-tabs #myTabs class="nav-tabs">
<ion-tab tabIcon="list-box" tabTitle="Receipts" [root]="receiptsRoot"></ion-tab>
<ion-tab tabIcon="more" tabTitle="More" (ionSelect)="showMenu()"></ion-tab>
</ion-tabs>
showMenu() {
let menuSheet = this._actionSheetController.create({
title: 'Choose action',
buttons: [
{
text: 'Logout',
role: 'add',
icon: !this.platform.is('ios') ? 'log-out' : null,
handler: () => {
menuSheet.dismiss().then(() => {
this.logout();
});
}
},
{
text: 'About',
role: 'add',
icon: !this.platform.is('ios') ? 'information-circle' : null,
handler: () => {
menuSheet.dismiss().then(() => {
this.redirectToAboutPage();
});
}
},
{
text: 'Cancel',
role: 'cancel',
icon: !this.platform.is('ios') ? 'close' : null
}
]
});
menuSheet.present();
}
After ActionSheet dismisses, I cannot do anything on the root tab. Any actions like edit/delete, even pull-to-refresh, don’t display until I reload an app or open and the close modal. To add more, if using modal instead of actionSheet everything works good after modal dismisses.
Expected scenario: using ActionSheet on tabs with (ionSelect), everything works after ActionSheet dismisses. (Again, all works if using modal instead)
Cordova CLI: 6.2.0 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v4.4.7 Xcode version: Xcode 7.3.1 Build version 7D1014
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (4 by maintainers)
The issue is still open. It only has been referenced from two closed issues.
Hello, i can’t see the solution here, why the issue is closed then ?