Skip to content

Commit a2d6b21

Browse files
authored
Merge pull request #2788 from IgniteUI/fix-pinning-sample
fix pinning sample
2 parents c666055 + 3d9bc3b commit a2d6b21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/grid/grid-row-pinning-drag/grid-row-pinning-drag.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class GridPinningDragSampleComponent implements OnInit {
7979
if (cursorPosition.y > rowRect.top + window.scrollY && cursorPosition.y < rowRect.bottom + window.scrollY &&
8080
cursorPosition.x > rowRect.left + window.scrollX && cursorPosition.x < rowRect.right + window.scrollX) {
8181
// return the index of the targeted row
82-
return this.data.indexOf(this.data.find((r) => r.ID === row.data.ID));
82+
return this.data.indexOf(this.data.find((r) => r.ID === row.rowData.ID));
8383
}
8484
}
8585

@@ -92,7 +92,7 @@ export class GridPinningDragSampleComponent implements OnInit {
9292
if (cursorPosition.y > rowRect.top + window.scrollY && cursorPosition.y < rowRect.bottom + window.scrollY &&
9393
cursorPosition.x > rowRect.left + window.scrollX && cursorPosition.x < rowRect.right + window.scrollX) {
9494
// return the ID of the targeted row
95-
return row.data.ID;
95+
return row.rowData.ID;
9696
}
9797
}
9898
}

0 commit comments

Comments
 (0)