[ACA-2489] - Drag and Drop is not operable with keyboard alone (#1235)

* filter out image-viewer for key navigation

* cancel keyboard navigation for cdk-overlay-container children
This commit is contained in:
Cilibiu Bogdan 2019-10-24 07:55:57 +03:00 committed by GitHub
parent bd81c496d8
commit cb268f2ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -777,9 +777,9 @@ describe('PreviewComponent', () => {
expect(router.navigate).not.toHaveBeenCalled();
});
it('should not navigate on keyboard event if target is child of dialog container', () => {
it('should not navigate on keyboard event if target is child of cdk overlay', () => {
const parent = document.createElement('div');
parent.className = 'mat-dialog-container';
parent.className = 'cdk-overlay-container';
const child = document.createElement('button');
child.addEventListener('keyup', function(e) {

View File

@ -115,7 +115,8 @@ export class PreviewComponent extends PageComponent
private containersSkipNavigation = [
'adf-viewer__sidebar',
'mat-dialog-container'
'cdk-overlay-container',
'adf-image-viewer'
];
constructor(

View File

@ -114,7 +114,8 @@ export class AppViewerComponent implements OnInit, OnDestroy {
private previewLocation: string;
private containersSkipNavigation = [
'adf-viewer__sidebar',
'mat-dialog-container'
'cdk-overlay-container',
'adf-image-viewer'
];
constructor(