Browse Source
Merge pull request #9259 from Dmitriymush/bug-fix/mat-icon-button_highlight_behaviour
Fix restoreFocus to dynamic created components within mat-dialog
pull/9264/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
1 deletions
-
ui-ngx/src/app/core/core.module.ts
|
|
|
@ -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: [] |
|
|
|
|