question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic2 tabs: using (ionSelect) to open ActionSheet

See original GitHub issue

On 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:closed
  • Created 7 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janpiocommented, Jul 25, 2017

The issue is still open. It only has been referenced from two closed issues.

1reaction
asbelghithcommented, Jun 12, 2017

Hello, i can’t see the solution here, why the issue is closed then ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic2 tabs: using (ionSelect) to open ActionSheet · Issue #7769
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 ...
Read more >
ion-action-sheet - Ionic Framework
An Action Sheet is a dialog that displays a set of options. It appears on top of the app's content, and must be...
Read more >
Custom Icons on Ionic Select with ActionSheet Interface (Ionic2)
Action Sheet dynamically from component in ionic 4. openApplicationSheet(): void { this.applicationService .
Read more >
Ionic Component Documentation
The Action Sheet always appears above any other components on the page, and must be dismissed in order to interact with the underlying...
Read more >
Ionic 4 Action Sheet Tutorial - YouTube
Ionic action sheet demo and tutorial. Full explanation and demonstration of ion- action-sheet. By the end of this tutorial, the ionic 4 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found