mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Update value of date input (#8865)
This commit is contained in:
parent
ba9e410393
commit
21140f437e
@ -118,6 +118,8 @@ export class HaDateInput extends LitElement {
|
||||
!this.value ||
|
||||
(this._inited && !this._compareStringDates(ev.detail.value, this.value))
|
||||
) {
|
||||
this.value = ev.detail.value;
|
||||
fireEvent(this, "change");
|
||||
fireEvent(this, "value-changed", { value: ev.detail.value });
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@ class DatetimeInput extends PolymerElement {
|
||||
<div>
|
||||
<ha-date-input
|
||||
id="dateInput"
|
||||
on-value-changed="dateTimeChanged"
|
||||
label="Date"
|
||||
value="{{selectedDate}}"
|
||||
></ha-date-input>
|
||||
|
Loading…
x
Reference in New Issue
Block a user