From 66bfdb6d12a48e6271b2ad2a5742e78d2803d920 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 3 Oct 2022 17:42:30 +0200 Subject: [PATCH] Fix empty value combobox (#13971) --- src/components/ha-combo-box.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-combo-box.ts b/src/components/ha-combo-box.ts index adbb06a1bd..fa328e4dda 100644 --- a/src/components/ha-combo-box.ts +++ b/src/components/ha-combo-box.ts @@ -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 }); } }