Skip to content

Commit 16d4f9c

Browse files
refactor(IgxTimePicker): is value is null on clear
1 parent ad81f22 commit 16d4f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ export class IgxTimePickerComponent implements
19511951
// TODO: refactoring - this.value should be null #6585
19521952
this.value?.setHours(0, 0, 0);
19531953

1954-
if (oldVal.getTime() !== this.value.getTime() || this.isReset()) {
1954+
if (oldVal.getTime() !== this.value?.getTime() || this.isReset()) {
19551955
const args: IgxTimePickerValueChangedEventArgs = {
19561956
oldValue: oldVal,
19571957
newValue: this.value

0 commit comments

Comments
 (0)