Skip to content

Commit e9794ec

Browse files
committed
refactor(time-picker): fix typos #6482
1 parent 1e40a76 commit e9794ec

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

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

+2-21
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,7 @@ export class IgxTimePickerComponent extends PickerBaseDirective
130130
*
131131
*/
132132
@Input()
133-
public displayFormat: string
134-
135-
if (value && this.validateFormat(value)) {
136-
this._displayFormat = value;
137-
}
138-
}
139-
140-
public get displayFormat(): string {
141-
return this._displayFormat;
142-
}
133+
public displayFormat: string;
143134

144135
/**
145136
* The expected user input format and placeholder.
@@ -153,17 +144,7 @@ export class IgxTimePickerComponent extends PickerBaseDirective
153144
* ```
154145
*/
155146
@Input()
156-
public set inputFormat(value: string) {
157-
this._inputFormat = DateTimeUtil.DEFAULT_TIME_INPUT_FORMAT;
158-
159-
if (value && this.validateFormat(value)) {
160-
this._inputFormat = value;
161-
}
162-
}
163-
164-
public get inputFormat(): string {
165-
return this._inputFormat;
166-
}
147+
public inputFormat : string = DateTimeUtil.DEFAULT_TIME_INPUT_FORMAT;
167148

168149
/**
169150
* Gets/Sets the interaction mode - dialog or drop down.

0 commit comments

Comments
 (0)