Only create sortable when not disabled (#20565)

This commit is contained in:
Simon Lamon
2024-04-20 14:32:40 +02:00
committed by GitHub
parent 697bbf428e
commit f39758b103

View File

@@ -82,7 +82,7 @@ export class HaSortable extends LitElement {
public connectedCallback() {
super.connectedCallback();
this._shouldBeDestroy = false;
if (this.hasUpdated) {
if (this.hasUpdated && !this.disabled) {
this._createSortable();
}
}