Skip to content

Commit 9efbcbc

Browse files
committed
clear completer and portal upon rejection
1 parent e92813f commit 9efbcbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/dialog/dialog-container.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export class MdDialogContainer extends BasePortalHost implements AfterViewInit {
5050

5151
this._deferredAttachPortal = null;
5252
this._deferredAttachCompleter = null;
53-
}, () => this._deferredAttachCompleter.reject());
53+
}, () => {
54+
this._deferredAttachCompleter.reject();
55+
this._deferredAttachCompleter = null;
56+
this._deferredAttachPortal = null;
57+
});
5458
}
5559
}
5660

0 commit comments

Comments
 (0)