Fix empty value combobox (#13971)

This commit is contained in:
Paul Bottein 2022-10-03 17:42:30 +02:00 committed by GitHub
parent aa673774a8
commit 66bfdb6d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ export class HaComboBox extends LitElement {
const newValue = ev.detail.value;
if (newValue !== this.value) {
fireEvent(this, "value-changed", { value: newValue });
fireEvent(this, "value-changed", { value: newValue || undefined });
}
}