Skip to content

Commit fbcb5e5

Browse files
committed
chore(igxTreeGrid): Fixes bug w non displaying pinned row outside visible area
1 parent be0601d commit fbcb5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.pipes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class IgxTreeGridRowPinningPipe implements PipeTransform {
331331
return [];
332332
}
333333

334-
const result = collection.filter((value, index) => grid.isRecordPinned(value));
334+
const result = grid.flatData.filter((value, index) => grid.isRecordPinned(value));
335335

336336
// pinned records should be ordered as they were pinned.
337337
result.sort((rec1, rec2) => grid.pinRecordIndex(rec1) - grid.pinRecordIndex(rec2));

0 commit comments

Comments
 (0)