Skip to content

Commit 28a7218

Browse files
authored
Merge pull request #7313 from IgniteUI/mkirova/fix-7306
chore(HierarchicalGrid): Fix inView condition for scroll in hierarchi…
2 parents e7eda38 + dd37bf2 commit 28a7218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
3939
if (rec && this.grid.isChildGridRecord(rec)) {
4040
// target is child grid
4141
const virtState = this.grid.verticalScrollContainer.state;
42-
const inView = rowIndex >= virtState.startIndex && rowIndex < virtState.startIndex + virtState.chunkSize;
42+
const inView = rowIndex >= virtState.startIndex && rowIndex <= virtState.startIndex + virtState.chunkSize;
4343
const isNext = this.activeNode.row < rowIndex;
4444
const targetLayoutIndex = isNext ? null : this.grid.childLayoutKeys.length - 1;
4545
if (inView) {

0 commit comments

Comments
 (0)