From 7597e2b47d5d27d9036cc537bdf15a90425d8f49 Mon Sep 17 00:00:00 2001 From: MKirova Date: Wed, 25 Sep 2019 17:51:21 +0300 Subject: [PATCH] fix(igxHiearchicalGrid): Prevent up/down arrow key navigation from footer summary row in hierarchical grid. --- .../hierarchical-grid/hierarchical-grid-navigation.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts b/projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts index b6bab98c0e6..f16359e4f7c 100644 --- a/projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts +++ b/projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts @@ -68,6 +68,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi } public navigateUp(rowElement, selectedNode: ISelectionNode) { + if (selectedNode.isSummaryRow) { return; } const prevElem = rowElement.previousElementSibling; const visibleColumnIndex = selectedNode.column; const currentRowIndex = selectedNode.row; @@ -103,6 +104,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi } } public navigateDown(rowElement, selectedNode: ISelectionNode) { + if (selectedNode.isSummaryRow) { return; } const nextElem = rowElement.nextElementSibling; const visibleColumnIndex = selectedNode.column; const currentRowIndex = selectedNode.row;