Skip to content

Commit af556f9

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix navigation to use correct arg from RowAdded event.
1 parent 415ed36 commit af556f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6565,7 +6565,8 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
65656565
return;
65666566
}
65676567
if (commit) {
6568-
this.onRowAdded.pipe(first()).subscribe(rowData => {
6568+
this.onRowAdded.pipe(first()).subscribe((args: IRowDataEventArgs) => {
6569+
const rowData = args.data;
65696570
// A check whether the row is in the current view
65706571
const viewIndex = this.findRecordIndexInView(rowData);
65716572
const dataIndex = this.filteredSortedData.findIndex(data => data[this.primaryKey] === rowData[this.primaryKey]);

0 commit comments

Comments
 (0)