mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Trap the tab in the cdk overlay for the search input to make it possible to reach the Search filter checkboxes (#1227)
This commit is contained in:
committed by
Cilibiu Bogdan
parent
beee6d277d
commit
1c1a365ac9
@@ -29,9 +29,15 @@ import { CoreModule } from '@alfresco/adf-core';
|
|||||||
import { SearchInputComponent } from './search-input/search-input.component';
|
import { SearchInputComponent } from './search-input/search-input.component';
|
||||||
import { SearchInputControlComponent } from './search-input-control/search-input-control.component';
|
import { SearchInputControlComponent } from './search-input-control/search-input-control.component';
|
||||||
import { ContentModule } from '@alfresco/adf-content-services';
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { A11yModule } from '@angular/cdk/a11y';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [CommonModule, CoreModule.forChild(), ContentModule.forChild()],
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
A11yModule
|
||||||
|
],
|
||||||
declarations: [SearchInputComponent, SearchInputControlComponent],
|
declarations: [SearchInputComponent, SearchInputControlComponent],
|
||||||
exports: [SearchInputComponent, SearchInputControlComponent]
|
exports: [SearchInputComponent, SearchInputControlComponent]
|
||||||
})
|
})
|
||||||
|
@@ -35,6 +35,11 @@
|
|||||||
[overlapTrigger]="true"
|
[overlapTrigger]="true"
|
||||||
class="app-search-options-menu"
|
class="app-search-options-menu"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
(keydown.tab)="$event.stopPropagation()"
|
||||||
|
(keydown.shift.tab)="$event.stopPropagation()"
|
||||||
|
>
|
||||||
|
<div cdkTrapFocus>
|
||||||
<app-search-input-control
|
<app-search-input-control
|
||||||
#searchInputControl
|
#searchInputControl
|
||||||
(click)="$event.stopPropagation()"
|
(click)="$event.stopPropagation()"
|
||||||
@@ -58,4 +63,6 @@
|
|||||||
{{ option.key | translate }}
|
{{ option.key | translate }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
Reference in New Issue
Block a user