File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
projects/igniteui-angular/src/lib/grids/common Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ import { first } from 'rxjs/operators';
3
3
import { IGridEditDoneEventArgs , IGridEditEventArgs , IRowDataEventArgs } from '../common/events' ;
4
4
import { GridType , RowType } from './grid.interface' ;
5
5
import { Subject } from 'rxjs' ;
6
- import { copyDescriptors , isEqual } from '../../core/utils' ;
6
+ import { copyDescriptors , isEqual , isDate } from '../../core/utils' ;
7
7
import { FormGroup } from '@angular/forms' ;
8
+ import { DateTimeUtil } from '../../date-common/util/date-time.util' ;
8
9
9
10
export class IgxEditRow {
10
11
public transactionState : any ;
@@ -233,6 +234,12 @@ export class IgxCellCrudState {
233
234
}
234
235
235
236
let doneArgs ;
237
+ if ( this . cell . column . dataType === 'date' && ! isDate ( this . cell . value ) ) {
238
+ if ( isEqual ( DateTimeUtil . parseIsoDate ( this . cell . value ) , this . cell . editValue ) ) {
239
+ doneArgs = this . exitCellEdit ( event ) ;
240
+ return doneArgs ;
241
+ }
242
+ }
236
243
if ( isEqual ( this . cell . value , this . cell . editValue ) ) {
237
244
doneArgs = this . exitCellEdit ( event ) ;
238
245
return doneArgs ;
You can’t perform that action at this time.
0 commit comments