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.

bug: Popover does not show-up - Compatibility with Tabs

See original GitHub issue

Bug Report

Ionic version: [x] @ionic/react 5.1.0

Current behavior: I have an IonTabButton supposed to open a popover. It works in the browser On Android, it does not work directly after start of the app. It works only after we touched an other TabButton.

Expected behavior: The popover should show-up

Steps to reproduce: Copy https://github.com/Toto5931/ionic_popover_bug Run Ionic serve and click on the right tab button (the 3 dots). The popover opens Build the android app. Open the app and click on the right tab button. The popover does not open. If you click on the left tab button then the right tab button it works.

Related code:

const App: React.FC = () => {
  const [showPopover, setShowPopover] = useState<{ open: boolean, event: Event | undefined }>({
    open: false,
    event: undefined,
  });

  return (
    <IonApp>
       <IonReactRouter> 
        <IonTabs>

          <IonRouterOutlet>
          </IonRouterOutlet>

          <IonTabBar slot="bottom">

            <IonTabButton tab="tab1" href="/tab1">
              <IonIcon icon={mailOutline} />
            </IonTabButton>

            <IonTabButton onClick={(e) => {setShowPopover({ open: true, event: e.nativeEvent });}} >
              <IonIcon icon={ellipsisVerticalOutline} />
            </IonTabButton>

          </IonTabBar>

        </IonTabs>

        <IonPopover
          isOpen={showPopover.open}
          event={showPopover.event}
          onDidDismiss={() => setShowPopover({ open: false, event: undefined })}
        >
          Text
        </IonPopover>

      </IonReactRouter>
    </IonApp>
  );
};

Other information:

Ionic info: Ionic:

Ionic CLI : 6.5.0 (C:\Users\zorro\AppData\Roaming\npm\node_modules@ionic\cli) Ionic Framework : @ionic/react 5.1.0

Capacitor:

Capacitor CLI : 2.0.2 @capacitor/core : 2.0.2

Utility:

cordova-res : not installed native-run : not installed

System:

NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe) npm : 6.13.4 OS : Windows 10

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Toto5931commented, May 7, 2020

Thanks a lot !

0reactions
ionitron-bot[bot]commented, Jun 6, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bootstrap popover not showing on top of all elements
The popovers still show up fine, but they don't show up on top of all other elements.
Read more >
object on a slide control within a popover does not change ...
Put a slidecontrol inside a popover, name the tabs, use a script to "Go To Object" of the second tab, slidecontrol won't change...
Read more >
POTENTIAL BUG: PopOver will not open when referenced ...
Essentially, I have a popover that call from a tabstrip item, which is inside a layout. The view that I'm calling also has...
Read more >
Compatibility issues - AcyMailing
This error generally occurs when your Front-end template or a system module/plugin does not handle non-SEF URLs... The error message is generally "1064...
Read more >
Release notes/1.2 - Inkscape Wiki
Snap settings are no longer saved with the document, but are set globally for all documents in the preferences and in the snap...
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