We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e631e commit 0e8e0edCopy full SHA for 0e8e0ed
projects/igniteui-angular/src/lib/grids/common/crud.service.ts
@@ -577,7 +577,9 @@ export class IgxGridCRUDService extends IgxRowAddCrudState {
577
this.grid.notifyChanges(true);
578
579
this.grid.navigateTo(this.row.index, -1);
580
- const dummyRow = this.grid.gridAPI.get_row_by_index(this.row.index);
+ // when selecting the dummy row we need to adjust for top pinned rows
581
+ const indexAdjust = this.grid.isRowPinningToTop && !this.addRowParent.isPinned ? this.grid.pinnedRows.length : 0;
582
+ const dummyRow = this.grid.gridAPI.get_row_by_index(this.row.index + indexAdjust);
583
dummyRow.triggerAddAnimation();
584
dummyRow.cdr.detectChanges();
585
dummyRow.addAnimationEnd.pipe(first()).subscribe(() => {
0 commit comments