mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Prevent ha-form data lost if quick data updates (#18094)
This commit is contained in:
parent
c345f41416
commit
a3400a2f9c
@ -189,8 +189,13 @@ export class HaForm extends LitElement implements HaFormElement {
|
|||||||
? ev.detail.value
|
? ev.detail.value
|
||||||
: { [schema.name]: ev.detail.value };
|
: { [schema.name]: ev.detail.value };
|
||||||
|
|
||||||
|
this.data = {
|
||||||
|
...this.data,
|
||||||
|
...newValue,
|
||||||
|
};
|
||||||
|
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: { ...this.data, ...newValue },
|
value: this.data,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user