@@ -451,7 +451,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
451
451
// move focus to last summary row cell
452
452
const summaryRow = summaryRows [ 0 ] . nativeElement ;
453
453
this . focusPrevRow ( summaryRow , lastIndex , childGrid , true , true ) ;
454
- } else if ( childGrid . rowList . toArray ( ) . length === 0 &&
454
+ } else if ( childGrid . rowList . length === 0 &&
455
455
childGrid . allowFiltering && childGrid . filterMode === FilterMode . quickFilter ) {
456
456
// move to filter cell
457
457
childGrid . navigation . moveFocusToFilterCell ( ) ;
@@ -486,7 +486,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
486
486
const childGridID = gridElem . getAttribute ( 'id' ) ;
487
487
const childGrid = this . getChildGrid ( childGridID , grid ) ;
488
488
489
- if ( childGrid . rowList . toArray ( ) . length === 0 ) {
489
+ if ( childGrid . rowList . length === 0 ) {
490
490
this . focusNext ( visibleColumnIndex , childGrid ) ;
491
491
return ;
492
492
}
@@ -516,7 +516,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
516
516
const childGridID = gridElem . getAttribute ( 'id' ) ;
517
517
const childGrid = this . getChildGrid ( childGridID , grid ) ;
518
518
519
- if ( childGrid . rowList . toArray ( ) . length === 0 ) {
519
+ if ( childGrid . rowList . length === 0 ) {
520
520
this . focusPrev ( visibleColumnIndex , childGrid ) ;
521
521
return ;
522
522
}
@@ -669,7 +669,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
669
669
670
670
private focusNextRow ( elem , visibleColumnIndex , grid , isSummary ?) {
671
671
const cellSelector = this . getCellSelector ( visibleColumnIndex , isSummary ) ;
672
- if ( grid . navigation . isColumnFullyVisible ( visibleColumnIndex ) ) {
672
+ if ( grid . navigation . isColumnFullyVisible ( visibleColumnIndex ) || grid . rowList . length === 0 ) {
673
673
const cell =
674
674
elem . querySelector ( `${ cellSelector } [data-visibleIndex="${ visibleColumnIndex } "]` ) ;
675
675
const closestScrollableGrid = this . getNextScrollableDown ( grid ) . grid ;
0 commit comments