We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 837947b commit dee78cbCopy full SHA for dee78cb
src/components/dialog/dialog-container.ts
@@ -61,6 +61,10 @@ export class MdDialogContainer extends BasePortalHost implements AfterViewInit {
61
// The @ViewChild query for the portalHost is not resolved until AfterViewInit, but this
62
// function may be called before this lifecycle event. As such, we defer the attachment of
63
// the portal until AfterViewInit.
64
+ if (this._deferredAttachCompleter) {
65
+ this._deferredAttachCompleter.reject();
66
+ }
67
+
68
this._deferredAttachPortal = portal;
69
this._deferredAttachCompleter = new PromiseCompleter();
70
return this._deferredAttachCompleter.promise;
0 commit comments