We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f466af commit e2b7b81Copy full SHA for e2b7b81
src/material/dialog/dialog.ts
@@ -147,6 +147,9 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
147
dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
148
this.afterOpened.next(dialogRef);
149
150
+ // Notify the dialog container that the content has been attached.
151
+ dialogContainer._initializeWithAttachedContent();
152
+
153
return dialogRef;
154
}
155
@@ -263,9 +266,6 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
263
266
.updateSize(config.width, config.height)
264
267
.updatePosition(config.position);
265
268
- // Notify the dialog container that the content has been attached.
- dialogContainer._initializeWithAttachedContent();
-
269
270
271
0 commit comments