fix(modal): make sure content is ready

fixes #14969
This commit is contained in:
Manu Mtz.-Almeida
2018-08-25 16:48:30 +02:00
parent 3ffa3cd7db
commit 2c8bc0433b
3 changed files with 12 additions and 4 deletions

View File

@@ -1,6 +1,12 @@
import { ComponentRef, FrameworkDelegate } from '../interface';
export async function attachComponent(delegate: FrameworkDelegate | undefined, container: Element, component: ComponentRef, cssClasses?: string[], componentProps?: {[key: string]: any}): Promise<HTMLElement> {
export async function attachComponent(
delegate: FrameworkDelegate | undefined,
container: Element,
component: ComponentRef,
cssClasses?: string[],
componentProps?: {[key: string]: any}
): Promise<HTMLElement> {
if (delegate) {
return delegate.attachViewToDom(container, component, componentProps, cssClasses);
}