mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +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
|
// @ts-ignore
|
||||||
this._comboBox._closeOnBlurIsPrevented = true;
|
this._comboBox._closeOnBlurIsPrevented = true;
|
||||||
}
|
}
|
||||||
|
if (!this.opened) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const newValue = ev.detail.value;
|
const newValue = ev.detail.value;
|
||||||
|
|
||||||
if (newValue !== this.value) {
|
if (newValue !== this.value) {
|
||||||
fireEvent(this, "value-changed", { value: newValue || undefined });
|
fireEvent(this, "value-changed", { value: newValue || undefined });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user