Skip to content

Commit f0d45f7

Browse files
refactor(IgxTimePicker): is value is null on clear
1 parent 72a2aaa commit f0d45f7

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
@@ -1901,7 +1901,7 @@ export class IgxTimePickerComponent implements
19011901
// TODO: refactoring - this.value should be null #6585
19021902
this.value?.setHours(0, 0, 0);
19031903

1904-
if (oldVal.getTime() !== this.value.getTime() || this.isReset()) {
1904+
if (oldVal.getTime() !== this.value?.getTime() || this.isReset()) {
19051905
const args: IgxTimePickerValueChangedEventArgs = {
19061906
oldValue: oldVal,
19071907
newValue: this.value

0 commit comments

Comments
 (0)