Skip to content

Commit 2f1ef60

Browse files
committed
fix(add-row): Trigger grid pipes right after adding row for data to be reflected anywhere.
1 parent 914d02c commit 2f1ef60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/igniteui-angular/src/lib/grids/common/crud.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export class IgxCellCrudState {
146146
public cell: IgxCell | null = null;
147147
public row: IgxEditRow | null = null;
148148
public isInCompositionMode = false;
149-
public cancelAddMode = false;
150149

151150
public createCell(cell): IgxCell {
152151
// cell.rowData ?? cell.row.data covers the cases, where
@@ -353,8 +352,11 @@ export class IgxRowCrudState extends IgxCellCrudState {
353352
nonCancelableArgs = this.rowEditDone(rowEditArgs.oldValue, event);
354353
} else {
355354
this.grid.transactions.endPending(false);
355+
356356
const parentId = this.getParentRowId();
357357
this.grid.gridAPI.addRowToData(this.row.newData ?? this.row.data, parentId);
358+
this.grid.triggerPipes();
359+
358360
nonCancelableArgs = this.rowEditDone(null, event);
359361
}
360362

@@ -559,7 +561,6 @@ export class IgxGridCRUDService extends IgxRowAddCrudState {
559561
return;
560562
}
561563
this.endEdit(true, event);
562-
this.cancelAddMode = false;
563564

564565
if (parentRow != null && this.grid.expansionStates.get(parentRow.rowID)) {
565566
this.grid.collapseRow(parentRow.rowID);

0 commit comments

Comments
 (0)