Skip to content

Commit b44c838

Browse files
refactor(IgxTimePicker): is value is null on clear
1 parent 0cd1cb5 commit b44c838

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

1961-
if (oldVal.getTime() !== this.value.getTime() || this.isReset()) {
1961+
if (oldVal.getTime() !== this.value?.getTime() || this.isReset()) {
19621962
const args: IgxTimePickerValueChangedEventArgs = {
19631963
oldValue: oldVal,
19641964
newValue: this.value

0 commit comments

Comments
 (0)