File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
projects/igniteui-angular/src/lib/grids/common Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -368,8 +368,6 @@ export class IgxRowCrudState extends IgxCellCrudState {
368
368
this . updateRowEditData ( this . row , this . row . newData ) ;
369
369
args = this . rowEdit ( event ) ;
370
370
if ( args . cancel ) {
371
- delete this . row . newData ;
372
- this . grid . transactions . clear ( this . row . id ) ;
373
371
return args ;
374
372
}
375
373
}
@@ -576,7 +574,7 @@ export class IgxGridCRUDService extends IgxRowAddCrudState {
576
574
return ;
577
575
}
578
576
579
- if ( this . nonEditable ) {
577
+ if ( this . nonEditable ) {
580
578
console . warn ( 'The grid must have a `primaryKey` specified when using `rowEditable`!' ) ;
581
579
return ;
582
580
}
@@ -688,10 +686,13 @@ export class IgxGridCRUDService extends IgxRowAddCrudState {
688
686
return args . cancel ;
689
687
}
690
688
} else {
689
+ // needede because this.cell is null after exitCellEdit
690
+ // thus the next if is always false
691
+ const cell = this . cell ;
691
692
this . exitCellEdit ( event ) ;
692
- if ( ! this . grid . rowEditable && this . cell ) {
693
- const value = this . grid . transactions . getAggregatedValue ( this . cell . id . rowID , true ) || this . cell . rowData ;
694
- this . grid . validation . update ( this . cell . id . rowID , value ) ;
693
+ if ( ! this . grid . rowEditable && cell ) {
694
+ const value = this . grid . transactions . getAggregatedValue ( cell . id . rowID , true ) || cell . rowData ;
695
+ this . grid . validation . update ( cell . id . rowID , value ) ;
695
696
}
696
697
}
697
698
You can’t perform that action at this time.
0 commit comments