Skip to content

Commit

Permalink
fix(grid): check for cell in edit in onKeyDownExitEdit, #3429
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSlavov committed Dec 13, 2018
1 parent f0b410b commit 35bf2f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/igniteui-angular/src/lib/grids/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@ export class IgxGridCellComponent implements OnInit, AfterViewInit {
}

public onKeydownExitEditMode(event) {
if (this.column.editable) {
const editableCell = this;
const editableCell = this.gridAPI.get_cell_inEditMode(this.gridID);
if (this.column.editable && editableCell) {
const args: IGridEditEventArgs = {
cellID: editableCell.cellID,
rowID: editableCell.cellID.rowID,
oldValue: editableCell.value,
newValue: editableCell.editValue,
oldValue: editableCell.cell.value,
newValue: editableCell.cell.editValue,
cancel: false
};
this.grid.onCellEditCancel.emit(args);
Expand Down

0 comments on commit 35bf2f5

Please sign in to comment.