[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
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) {