igniteui-angular 14.2.15 → 14.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24356,8 +24356,6 @@ class IgxRowCrudState extends IgxCellCrudState {
24356
24356
  this.updateRowEditData(this.row, this.row.newData);
24357
24357
  args = this.rowEdit(event);
24358
24358
  if (args.cancel) {
24359
- delete this.row.newData;
24360
- this.grid.transactions.clear(this.row.id);
24361
24359
  return args;
24362
24360
  }
24363
24361
  }
@@ -24637,10 +24635,13 @@ class IgxGridCRUDService extends IgxRowAddCrudState {
24637
24635
  }
24638
24636
  }
24639
24637
  else {
24638
+ // needede because this.cell is null after exitCellEdit
24639
+ // thus the next if is always false
24640
+ const cell = this.cell;
24640
24641
  this.exitCellEdit(event);
24641
- if (!this.grid.rowEditable && this.cell) {
24642
- const value = this.grid.transactions.getAggregatedValue(this.cell.id.rowID, true) || this.cell.rowData;
24643
- this.grid.validation.update(this.cell.id.rowID, value);
24642
+ if (!this.grid.rowEditable && cell) {
24643
+ const value = this.grid.transactions.getAggregatedValue(cell.id.rowID, true) || cell.rowData;
24644
+ this.grid.validation.update(cell.id.rowID, value);
24644
24645
  }
24645
24646
  }
24646
24647
  args = this.updateRow(commit, event);