Skip to content

Commit f8fcd15

Browse files
authored
Merge branch '17.1.x' into ganastasov/fix-14151-17.1.x
2 parents 693acc2 + fbb34fa commit f8fcd15

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
/**
@@ -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();

projects/igniteui-angular/src/lib/directives/mask/mask.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class IgxMaskDirective implements OnInit, AfterViewChecked, ControlValueA
143143

144144
private readonly defaultMask = 'CCCCCCCCCC';
145145

146-
private _onTouchedCallback: () => void = noop;
146+
protected _onTouchedCallback: () => void = noop;
147147
private _onChangeCallback: (_: any) => void = noop;
148148

149149
constructor(

0 commit comments

Comments
 (0)