Skip to content

Commit

Permalink
fix(legacy): InputDateTime fix native option for empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Oct 12, 2024
1 parent 8a52bbc commit 92f03f2
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 92f03f2

Please sign in to comment.