Merge pull request #9259 from Dmitriymush/bug-fix/mat-icon-button_highlight_behaviour
Fix restoreFocus to dynamic created components within mat-dialog
This commit is contained in:
commit
bdd260ae23
@ -34,7 +34,7 @@ import {
|
||||
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
import { TbMissingTranslationHandler } from './translate/missing-translate-handler';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MAT_DIALOG_DEFAULT_OPTIONS, MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { TranslateDefaultCompiler } from '@core/translate/translate-default-compiler';
|
||||
@ -100,6 +100,12 @@ export function HttpLoaderFactory(http: HttpClient) {
|
||||
useClass: GlobalHttpInterceptor,
|
||||
multi: true
|
||||
},
|
||||
{
|
||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||
useValue: {
|
||||
restoreFocus: false
|
||||
}
|
||||
},
|
||||
WINDOW_PROVIDERS
|
||||
],
|
||||
exports: []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user