Fix section editing after disconnect/reconnect (#19917)

* Fix section editing after disconnect/reconnect

* Update src/components/ha-sortable.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paul Bottein 2024-02-29 15:12:19 +01:00 committed by Bram Kragten
parent 962912c43c
commit a34332b48d
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ export class HaSortable extends LitElement {
public connectedCallback() {
super.connectedCallback();
this._shouldBeDestroy = false;
if (this.hasUpdated) {
this.requestUpdate();
}
}
protected createRenderRoot() {