mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Fix some instability in ha-selector-object (#26301)
Fix some instability in ha-object-selector
This commit is contained in:
parent
c14425b2d1
commit
7d8b418a81
@ -15,6 +15,7 @@ import "../ha-md-list-item";
|
||||
import "../ha-sortable";
|
||||
import "../ha-yaml-editor";
|
||||
import type { HaYamlEditor } from "../ha-yaml-editor";
|
||||
import { deepEqual } from "../../common/util/deep-equal";
|
||||
|
||||
@customElement("ha-selector-object")
|
||||
export class HaObjectSelector extends LitElement {
|
||||
@ -271,7 +272,8 @@ export class HaObjectSelector extends LitElement {
|
||||
if (
|
||||
changedProps.has("value") &&
|
||||
!this._valueChangedFromChild &&
|
||||
this._yamlEditor
|
||||
this._yamlEditor &&
|
||||
!deepEqual(this.value, changedProps.get("value"))
|
||||
) {
|
||||
this._yamlEditor.setValue(this.value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user