Skip to content

Commit e2b7b81

Browse files
committed
fixup! feat(material-experimental): MDC-based version of dialog
Potential fix for test failure in g3
1 parent 1f466af commit e2b7b81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/dialog/dialog.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
147147
dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
148148
this.afterOpened.next(dialogRef);
149149

150+
// Notify the dialog container that the content has been attached.
151+
dialogContainer._initializeWithAttachedContent();
152+
150153
return dialogRef;
151154
}
152155

@@ -263,9 +266,6 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
263266
.updateSize(config.width, config.height)
264267
.updatePosition(config.position);
265268

266-
// Notify the dialog container that the content has been attached.
267-
dialogContainer._initializeWithAttachedContent();
268-
269269
return dialogRef;
270270
}
271271

0 commit comments

Comments
 (0)