From 8bf60e7388dbf133d74ff9934449768a67f443bb Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sat, 25 Aug 2018 16:48:47 +0200 Subject: [PATCH] fix(popover): make sure content is ready --- core/src/components/popover/popover.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/components/popover/popover.tsx b/core/src/components/popover/popover.tsx index 1f184549f0..f0baf61968 100644 --- a/core/src/components/popover/popover.tsx +++ b/core/src/components/popover/popover.tsx @@ -4,6 +4,7 @@ import { Animation, AnimationBuilder, Color, ComponentProps, ComponentRef, Confi import { attachComponent, detachComponent } from '../../utils/framework-delegate'; import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays'; import { createThemedClasses, getClassMap } from '../../utils/theme'; +import { deepReady } from '../../utils/transition'; import { iosEnterAnimation } from './animations/ios.enter'; import { iosLeaveAnimation } from './animations/ios.leave'; @@ -181,6 +182,7 @@ export class Popover implements OverlayInterface { popover: this.el }; this.usersElement = await attachComponent(this.delegate, container, this.component, ['popover-viewport'], data); + await deepReady(this.usersElement); return present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, this.event); }