mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix hidden/broken input_datetime date selector (#14623)
fixes undefined
This commit is contained in:
parent
34e1d745be
commit
3b51050b52
@ -57,7 +57,10 @@ export class HaDateInput extends LitElement {
|
|||||||
readonly
|
readonly
|
||||||
@click=${this._openDialog}
|
@click=${this._openDialog}
|
||||||
.value=${this.value
|
.value=${this.value
|
||||||
? formatDateNumeric(new Date(`${this.value}T00:00:00`), this.locale)
|
? formatDateNumeric(
|
||||||
|
new Date(`${this.value.split("T")[0]}T00:00:00`),
|
||||||
|
this.locale
|
||||||
|
)
|
||||||
: ""}
|
: ""}
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user