fix(popover): popover positioning for controller and inline (#26274)

Resolves #24716
This commit is contained in:
Sean Perkins
2022-11-14 12:17:46 -05:00
committed by GitHub
parent 2c36049a7f
commit 31ab10de4e

View File

@ -465,18 +465,16 @@ export class Popover implements ComponentInterface, PopoverInterface {
this.configureDismissInteraction();
// TODO: FW-2773: Apply this to only the lazy build.
if (inline === true) {
/**
* ionMount only needs to be emitted if the popover is inline.
*/
this.ionMount.emit();
/**
* Wait one raf before presenting the popover.
* This allows the lazy build enough time to
* calculate the popover dimensions for the animation.
*/
await waitOneFrame();
}
/**
* ionMount only needs to be emitted if the popover is inline.
*/
this.ionMount.emit();
/**
* Wait one raf before presenting the popover.
* This allows the lazy build enough time to
* calculate the popover dimensions for the animation.
*/
await waitOneFrame();
this.currentTransition = present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, {
event: event || this.event,