Skip to content

Commit 7d0a105

Browse files
authored
Merge branch '17.0.x' into ddincheva/summarySize-17.0
2 parents a2ddf69 + bed0fc7 commit 7d0a105

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,13 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
648648

649649
protected onFocus() {
650650
const firstIndexInView = this.virtDir.state.startIndex;
651-
this.focusedItem = {
652-
id: this.getItemId(firstIndexInView),
653-
index: firstIndexInView,
654-
checked: this.virtDir.igxForOf[firstIndexInView].isSelected
655-
};
651+
if (this.virtDir.igxForOf.length > 0) {
652+
this.focusedItem = {
653+
id: this.getItemId(firstIndexInView),
654+
index: firstIndexInView,
655+
checked: this.virtDir.igxForOf[firstIndexInView].isSelected
656+
};
657+
}
656658
this.setActiveDescendant();
657659
}
658660

0 commit comments

Comments
 (0)