File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
projects/igniteui-angular/src/lib/core Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -169,23 +169,21 @@ export class IgxGridCRUDService {
169169 }
170170
171171 if ( this . rowEditing ) {
172- if ( ! this . row ) {
173- this . cell = this . createCell ( cell ) ;
174- this . cell . primaryKey = this . primaryKey ;
172+ if ( this . row && ! this . sameRow ( newCell . id . rowID ) ) {
173+ this . grid . endEdit ( true ) ;
174+ this . cell = newCell ;
175175 this . beginRowEdit ( ) ;
176176 return ;
177177 }
178178
179- if ( this . row && ! this . sameRow ( newCell . id . rowID ) ) {
180- this . grid . endEdit ( true ) ;
181- this . cell = this . createCell ( cell ) ;
182- this . cell . primaryKey = this . primaryKey ;
179+ this . cell = newCell ;
180+
181+ if ( ! this . row ) {
183182 this . beginRowEdit ( ) ;
184183 return ;
185184 }
186185 } else {
187- this . cell = this . createCell ( cell ) ;
188- this . cell . primaryKey = this . primaryKey ;
186+ this . cell = newCell ;
189187 this . endRowEdit ( ) ;
190188 }
191189 }
You can’t perform that action at this time.
0 commit comments