Skip to content

Commit

Permalink
Fixed #10180 - Prod build is failing with Directive SelectableRow, Ex…
Browse files Browse the repository at this point in the history
…pected 0 arguments, but got 1.
  • Loading branch information
yigitfindikli committed Apr 30, 2021
1 parent d19716b commit 699635a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2821,17 +2821,23 @@ export class SelectableRow implements OnInit, OnDestroy {
});
}

@HostListener('keydown.pagedown', ['$event'])
@HostListener('keydown.pageup', ['$event'])
@HostListener('keydown.home', ['$event'])
@HostListener('keydown.end', ['$event'])
@HostListener('keydown.space', ['$event'])
@HostListener('keydown.pagedown')
@HostListener('keydown.pageup')
@HostListener('keydown.home')
@HostListener('keydown.end')
onPageDownKeyDown() {
if (this.dt.virtualScroll) {
DomHandler.findSingle(this.dt.scrollableViewChild.el.nativeElement, 'cdk-virtual-scroll-viewport').focus();
}
}

@HostListener('keydown.space')
onSpaceKeydown() {
if (this.dt.virtualScroll && !this.dt.editingCell) {
DomHandler.findSingle(this.dt.scrollableViewChild.el.nativeElement, 'cdk-virtual-scroll-viewport').focus();
}
}

findNextSelectableRow(row: HTMLTableRowElement): HTMLTableRowElement {
let nextRow = <HTMLTableRowElement> row.nextElementSibling;
if (nextRow) {
Expand Down

0 comments on commit 699635a

Please sign in to comment.