From 864aa990a68e5143a13961bc0fafefcd553d5301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Mon, 15 Feb 2021 14:30:37 +0300 Subject: [PATCH] Fixed #9893 - pSelectableRow blocks typing space on inputs in p-table --- src/app/components/table/table.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index decfc26c766..4ad8a2291a7 100755 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -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();