Skip to content

Commit d831080

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Update only if it's not in edit mode.
1 parent bd3bf13 commit d831080

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,8 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
926926
this.highlight.lastSearchInfo.caseSensitive = this.grid.lastSearchInfo.caseSensitive;
927927
this.highlight.lastSearchInfo.exactMatch = this.grid.lastSearchInfo.exactMatch;
928928
}
929-
if (this.formControl && this.formControl.value !== changes.value.currentValue) {
929+
const isInEdit = this.grid.rowEditable ? this.row.inEditMode : this.editMode;
930+
if (this.formControl && this.formControl.value !== changes.value.currentValue && !isInEdit) {
930931
this.formControl.setValue(changes.value.currentValue);
931932
}
932933
}

0 commit comments

Comments
 (0)