mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-14 17:58:44 +00:00
ACS-3758 Focus modal first focusable element after opening (#8006)
This commit is contained in:
@@ -27,6 +27,7 @@ import { ConfirmDialogComponent } from './confirm.dialog';
|
|||||||
import { MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
import { MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
||||||
import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
||||||
import { LibraryDialogComponent } from './library/library.dialog';
|
import { LibraryDialogComponent } from './library/library.dialog';
|
||||||
|
import { ContentDirectiveModule } from '../directives';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -36,7 +37,8 @@ import { LibraryDialogComponent } from './library/library.dialog';
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatMomentDatetimeModule,
|
MatMomentDatetimeModule,
|
||||||
MatDatetimepickerModule
|
MatDatetimepickerModule,
|
||||||
|
ContentDirectiveModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
FolderDialogComponent,
|
FolderDialogComponent,
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
matInput
|
matInput
|
||||||
required
|
required
|
||||||
[formControlName]="'name'"
|
[formControlName]="'name'"
|
||||||
|
adf-auto-focus
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<mat-hint *ngIf="form.controls['name'].dirty">
|
<mat-hint *ngIf="form.controls['name'].dirty">
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
matInput
|
matInput
|
||||||
formControlName="title"
|
formControlName="title"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
adf-auto-focus
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<mat-hint *ngIf="libraryTitleExists">{{
|
<mat-hint *ngIf="libraryTitleExists">{{
|
||||||
|
Reference in New Issue
Block a user