These are both by design.
-
ion-popover
is a global component, meaning it is placed as a descendant ofion-app
, not as a descendant of the current view. You need to add a class to the popover if you want to target that specific instance. I recommend reading the Customizing Popovers documentation. -
The
popoverController
makes no assumptions about how many instances of the popover you can have open at once. This detail is up to the developer to define. So clicking a button that callspopoverController.create
2 times will create 2 popovers. If you want to only open 1 popover at a time, we recommend adding logic to your presentation function that checks for an existing popover before presenting.