mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
ha-selector-select fires spurious valueChanged on initialization (#16216)
This commit is contained in:
parent
4ff450c5c3
commit
afa071465c
@ -213,7 +213,7 @@ export class HaSelectSelector extends LitElement {
|
||||
private _valueChanged(ev) {
|
||||
ev.stopPropagation();
|
||||
const value = ev.detail?.value || ev.target.value;
|
||||
if (this.disabled || value === undefined) {
|
||||
if (this.disabled || value === undefined || value === this.value) {
|
||||
return;
|
||||
}
|
||||
fireEvent(this, "value-changed", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user