Skip to content

Commit 4047741

Browse files
committed
fix(time-picker): Addressing more RFCs. #3978.
1 parent df6c855 commit 4047741

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

projects/igniteui-angular/src/lib/time-picker/time-picker.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,10 @@ export class IgxTimePickerComponent implements
507507
@ViewChild(IgxInputDirective, { read: ElementRef })
508508
private _inputElementRef: ElementRef;
509509

510-
@ViewChild(IgxInputDirective, { read: IgxInputDirective})
510+
@ViewChild(IgxInputDirective, { read: IgxInputDirective })
511511
private _inputDirective: IgxInputDirective;
512512

513-
@ContentChild(IgxInputDirective, { read: IgxInputDirective})
513+
@ContentChild(IgxInputDirective, { read: IgxInputDirective })
514514
private _inputDirectiveUserTemplate: IgxInputDirective;
515515

516516
@ViewChild(IgxInputGroupComponent, { read: IgxInputGroupComponent })
@@ -1271,7 +1271,7 @@ export class IgxTimePickerComponent implements
12711271
public convertMinMaxValue(value: string): Date {
12721272
if (!value) {
12731273
return;
1274-
} else {
1274+
}
12751275
const date = this.value ? new Date(this.value) : this._dateFromModel ? new Date(this._dateFromModel) : new Date();
12761276
const sections = value.split(/[\s:]+/);
12771277
let hour, minutes, seconds, amPM;
@@ -1312,7 +1312,6 @@ export class IgxTimePickerComponent implements
13121312

13131313
return date;
13141314
}
1315-
}
13161315

13171316
private _isValueValid(value: Date): boolean {
13181317
if (this.maxValue && value > this.convertMinMaxValue(this.maxValue)) {

0 commit comments

Comments
 (0)