Skip to content

Commit 6178a23

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adjust selection check to use pinned view if row is pinned.
1 parent 2267e03 commit 6178a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/row.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
628628
if (mergeMeta && rowCount > 1) {
629629
const isPinned = this.pinned && !this.disabled;
630630
const indexInData = this.grid.isRowPinningToTop && !isPinned ? this.index - this.grid.pinnedRecordsCount : this.index;
631-
const range = this.grid.verticalScrollContainer.igxForOf.slice(indexInData, indexInData + rowCount);
631+
const range = isPinned ? this.grid.pinnedDataView.slice(indexInData, indexInData + rowCount) : this.grid.verticalScrollContainer.igxForOf.slice(indexInData, indexInData + rowCount);
632632
const inRange = range.filter(x => this.selectionService.isRowSelected(this.grid.primaryKey ? (x.recordRef || x)[this.grid.primaryKey] : (x.recordRef || x))).length > 0;
633633
return inRange;
634634
}

0 commit comments

Comments
 (0)