mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix custom value selected when clicking item in combo box (#25734)
This commit is contained in:
parent
0474a24df6
commit
78d7da21aa
@ -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 });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user