File tree 1 file changed +7
-9
lines changed
projects/igniteui-angular/src/lib/core
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -168,23 +168,21 @@ export class IgxGridCRUDService {
168
168
}
169
169
170
170
if ( this . rowEditing ) {
171
- if ( ! this . row ) {
172
- this . cell = this . createCell ( cell ) ;
173
- this . cell . primaryKey = this . primaryKey ;
171
+ if ( this . row && ! this . sameRow ( newCell . id . rowID ) ) {
172
+ this . grid . endEdit ( true ) ;
173
+ this . cell = newCell ;
174
174
this . beginRowEdit ( ) ;
175
175
return ;
176
176
}
177
177
178
- if ( this . row && ! this . sameRow ( newCell . id . rowID ) ) {
179
- this . grid . endEdit ( true ) ;
180
- this . cell = this . createCell ( cell ) ;
181
- this . cell . primaryKey = this . primaryKey ;
178
+ this . cell = newCell ;
179
+
180
+ if ( ! this . row ) {
182
181
this . beginRowEdit ( ) ;
183
182
return ;
184
183
}
185
184
} else {
186
- this . cell = this . createCell ( cell ) ;
187
- this . cell . primaryKey = this . primaryKey ;
185
+ this . cell = newCell ;
188
186
this . endRowEdit ( ) ;
189
187
}
190
188
}
You can’t perform that action at this time.
0 commit comments