Fix custom value selected when clicking item in combo box (#25734)

This commit is contained in:
Paul Bottein 2025-06-10 16:46:09 +02:00 committed by GitHub
parent 0474a24df6
commit 78d7da21aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,8 +345,10 @@ export class HaComboBox extends LitElement {
// @ts-ignore
this._comboBox._closeOnBlurIsPrevented = true;
}
if (!this.opened) {
return;
}
const newValue = ev.detail.value;
if (newValue !== this.value) {
fireEvent(this, "value-changed", { value: newValue || undefined });
}