Update value of date input (#8865)

This commit is contained in:
Bram Kragten 2021-04-09 01:31:46 +02:00 committed by GitHub
parent ba9e410393
commit 21140f437e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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 });
}
}

View File

@ -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>