@@ -90,7 +90,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
9090 @Input ( )
9191 public set minValue ( value : string | Date ) {
9292 this . _minValue = value ;
93- this . onValidatorChange ( ) ;
93+ this . _onValidatorChange ( ) ;
9494 }
9595
9696 /**
@@ -111,7 +111,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
111111 @Input ( )
112112 public set maxValue ( value : string | Date ) {
113113 this . _maxValue = value ;
114- this . onValidatorChange ( ) ;
114+ this . _onValidatorChange ( ) ;
115115 }
116116
117117 /**
@@ -166,14 +166,14 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
166166 * ```
167167 */
168168 @Input ( )
169- public set value ( value : Date | string ) {
169+ public set value ( value : Date | string | undefined | null ) {
170170 this . _value = value ;
171171 this . setDateValue ( value ) ;
172172 this . onChangeCallback ( value ) ;
173173 this . updateMask ( ) ;
174174 }
175175
176- public get value ( ) : Date | string {
176+ public get value ( ) : Date | string | undefined | null {
177177 return this . _value ;
178178 }
179179
@@ -218,7 +218,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
218218 private document : Document ;
219219 private _isFocused : boolean ;
220220 private _defaultInputFormat : string ;
221- private _value : Date | string ;
221+ private _value ? : Date | string ;
222222 private _minValue : Date | string ;
223223 private _maxValue : Date | string ;
224224 private _inputDateParts : DatePartInfo [ ] ;
@@ -230,9 +230,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
230230 minutes : 1 ,
231231 seconds : 1
232232 } ;
233- private onTouchCallback : ( ... args : any [ ] ) => void = noop ;
233+
234234 private onChangeCallback : ( ...args : any [ ] ) => void = noop ;
235- private onValidatorChange : ( ...args : any [ ] ) => void = noop ;
235+ private _onValidatorChange : ( ...args : any [ ] ) => void = noop ;
236236
237237 private get datePartDeltas ( ) : DatePartDeltas {
238238 return Object . assign ( { } , this . _datePartDeltas , this . spinDelta ) ;
@@ -392,7 +392,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
392392
393393 /** @hidden @internal */
394394 public registerOnValidatorChange ?( fn : ( ) => void ) : void {
395- this . onValidatorChange = fn ;
395+ this . _onValidatorChange = fn ;
396396 }
397397
398398 /** @hidden @internal */
@@ -402,7 +402,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
402402
403403 /** @hidden @internal */
404404 public override registerOnTouched ( fn : any ) : void {
405- this . onTouchCallback = fn ;
405+ this . _onTouchedCallback = fn ;
406406 }
407407
408408 /** @hidden @internal */
@@ -472,7 +472,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
472472 return ;
473473 }
474474 this . _isFocused = true ;
475- this . onTouchCallback ( ) ;
475+ this . _onTouchedCallback ( ) ;
476476 this . updateMask ( ) ;
477477 super . onFocus ( ) ;
478478 this . nativeElement . select ( ) ;
0 commit comments