File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
projects/igniteui-angular/src/lib Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,12 @@ export class IgxGridCRUDService {
151
151
}
152
152
153
153
begin ( cell ) : void {
154
- this . cell = this . createCell ( cell ) ;
155
- this . cell . primaryKey = this . primaryKey ;
154
+ const newCell = this . createCell ( cell ) ;
155
+ newCell . primaryKey = this . primaryKey ;
156
156
const args = {
157
- cellID : this . cell . id ,
158
- rowID : this . cell . id . rowID ,
159
- oldValue : this . cell . value ,
157
+ cellID : newCell . id ,
158
+ rowID : newCell . id . rowID ,
159
+ oldValue : newCell . value ,
160
160
cancel : false
161
161
} ;
162
162
@@ -167,20 +167,24 @@ export class IgxGridCRUDService {
167
167
return ;
168
168
}
169
169
170
-
171
170
if ( this . rowEditing ) {
172
171
if ( ! this . row ) {
172
+ this . cell = this . createCell ( cell ) ;
173
+ this . cell . primaryKey = this . primaryKey ;
173
174
this . beginRowEdit ( ) ;
174
175
return ;
175
176
}
176
177
177
- if ( this . row && ! this . sameRow ( this . cell . id . rowID ) ) {
178
+ if ( this . row && ! this . sameRow ( newCell . id . rowID ) ) {
178
179
this . grid . endEdit ( true ) ;
179
180
this . cell = this . createCell ( cell ) ;
181
+ this . cell . primaryKey = this . primaryKey ;
180
182
this . beginRowEdit ( ) ;
181
183
return ;
182
184
}
183
185
} else {
186
+ this . cell = this . createCell ( cell ) ;
187
+ this . cell . primaryKey = this . primaryKey ;
184
188
this . endRowEdit ( ) ;
185
189
}
186
190
}
Original file line number Diff line number Diff line change @@ -118,11 +118,9 @@ export class GridBaseAPIService <T extends IgxGridBaseComponent & IGridDataBinda
118
118
public submit_value ( ) {
119
119
const cell = this . grid . crudService . cell ;
120
120
if ( cell ) {
121
- if ( ! ( isEqual ( cell . value , cell . editValue ) ) ) {
122
- const args = this . update_cell ( cell , cell . editValue ) ;
123
- if ( args . cancel ) {
124
- return ;
125
- }
121
+ const args = this . update_cell ( cell , cell . editValue ) ;
122
+ if ( args . cancel ) {
123
+ return ;
126
124
}
127
125
this . escape_editMode ( ) ;
128
126
}
You can’t perform that action at this time.
0 commit comments