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.
2 parents 522d1af + 5dc5d45 commit f35b98fCopy full SHA for f35b98f
projects/igniteui-angular/src/lib/grids/common/crud.service.ts
@@ -586,7 +586,9 @@ export class IgxGridCRUDService extends IgxRowAddCrudState {
586
this.grid.notifyChanges(true);
587
588
this.grid.navigateTo(this.row.index, -1);
589
- 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
590
+ const indexAdjust = this.grid.isRowPinningToTop && !this.addRowParent.isPinned ? this.grid.pinnedRows.length : 0;
591
+ const dummyRow = this.grid.gridAPI.get_row_by_index(this.row.index + indexAdjust);
592
dummyRow.triggerAddAnimation();
593
dummyRow.cdr.detectChanges();
594
dummyRow.addAnimationEnd.pipe(first()).subscribe(() => {
0 commit comments