Skip to content

Commit

Permalink
Fixed #9893 - pSelectableRow blocks typing space on inputs in p-table
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Feb 15, 2021
1 parent 7878ca4 commit 864aa99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2788,15 +2788,11 @@ export class SelectableRow implements OnInit, OnDestroy {
});
}

@HostListener('keydown.space', ['$event'])
onSpaceKeyDown(event: KeyboardEvent) {
event.preventDefault();
}

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

0 comments on commit 864aa99

Please sign in to comment.