We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f99f8 commit 73414a9Copy full SHA for 73414a9
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