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';
33import { IGridEditDoneEventArgs , IGridEditEventArgs , IRowDataEventArgs } from '../common/events' ;
44import { GridType , RowType } from './grid.interface' ;
55import { Subject } from 'rxjs' ;
6- import { copyDescriptors , isEqual } from '../../core/utils' ;
6+ import { copyDescriptors , isEqual , isDate } from '../../core/utils' ;
77import { FormGroup } from '@angular/forms' ;
8+ import { DateTimeUtil } from '../../date-common/util/date-time.util' ;
89
910export class IgxEditRow {
1011 public transactionState : any ;
@@ -233,6 +234,12 @@ export class IgxCellCrudState {
233234 }
234235
235236 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+ }
236243 if ( isEqual ( this . cell . value , this . cell . editValue ) ) {
237244 doneArgs = this . exitCellEdit ( event ) ;
238245 return doneArgs ;
You can’t perform that action at this time.
0 commit comments