Skip to content

Commit

Permalink
fix(legacy): InputDateTime fix native option for empty value (#9464)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Oct 14, 2024
1 parent df731e7 commit b36e9dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TuiInputDateTimeDirective extends AbstractTuiTextfieldHost<TuiInput
}

public get rawValue(): [TuiDay | null, TuiTime | null] {
return this.host.value;
return this.host.value ?? [null, null];
}

public onValueChange(value: string): void {
Expand Down

0 comments on commit b36e9dc

Please sign in to comment.