We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02908ce commit 7bbe68dCopy full SHA for 7bbe68d
src/material/bottom-sheet/bottom-sheet-container.ts
@@ -306,7 +306,9 @@ export class MatBottomSheetContainer extends BasePortalOutlet implements OnDestr
306
307
// The `focus` method isn't available during server-side rendering.
308
if (this._elementRef.nativeElement.focus) {
309
- Promise.resolve().then(() => this._elementRef.nativeElement.focus());
+ this._ngZone.runOutsideAngular(() => {
310
+ Promise.resolve().then(() => this._elementRef.nativeElement.focus());
311
+ });
312
}
313
314
0 commit comments