File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export class CdkDialogContainer extends BasePortalOutlet implements OnDestroy {
97
97
// tslint:disable:no-host-decorator-in-concrete
98
98
99
99
/** The portal host inside of this container into which the dialog content will be loaded. */
100
- @ViewChild ( PortalHostDirective ) _portalHost : PortalHostDirective ;
100
+ @ViewChild ( PortalHostDirective , { static : true } ) _portalHost : PortalHostDirective ;
101
101
102
102
/** A subject emitting before the dialog enters the view. */
103
103
_beforeEnter : Subject < void > = new Subject ( ) ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export function throwMatDialogContentAlreadyAttachedError() {
72
72
} )
73
73
export class MatDialogContainer extends BasePortalOutlet {
74
74
/** The portal outlet inside of this container into which the dialog content will be loaded. */
75
- @ViewChild ( CdkPortalOutlet ) _portalOutlet : CdkPortalOutlet ;
75
+ @ViewChild ( CdkPortalOutlet , { static : true } ) _portalOutlet : CdkPortalOutlet ;
76
76
77
77
/** The class that traps and manages focus within the dialog. */
78
78
private _focusTrap : FocusTrap ;
You can’t perform that action at this time.
0 commit comments