Skip to content

Commit 31ab10d

Browse files
authored
fix(popover): popover positioning for controller and inline (#26274)
Resolves #24716
1 parent 2c36049 commit 31ab10d

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

core/src/components/popover/popover.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,18 +465,16 @@ export class Popover implements ComponentInterface, PopoverInterface {
465465
this.configureDismissInteraction();
466466

467467
// TODO: FW-2773: Apply this to only the lazy build.
468-
if (inline === true) {
469-
/**
470-
* ionMount only needs to be emitted if the popover is inline.
471-
*/
472-
this.ionMount.emit();
473-
/**
474-
* Wait one raf before presenting the popover.
475-
* This allows the lazy build enough time to
476-
* calculate the popover dimensions for the animation.
477-
*/
478-
await waitOneFrame();
479-
}
468+
/**
469+
* ionMount only needs to be emitted if the popover is inline.
470+
*/
471+
this.ionMount.emit();
472+
/**
473+
* Wait one raf before presenting the popover.
474+
* This allows the lazy build enough time to
475+
* calculate the popover dimensions for the animation.
476+
*/
477+
await waitOneFrame();
480478

481479
this.currentTransition = present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, {
482480
event: event || this.event,

0 commit comments

Comments
 (0)