Skip to content

Commit

Permalink
Only create sortable when not disabled (#20565)
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon authored Apr 20, 2024
1 parent 697bbf4 commit f39758b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-sortable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f39758b

Please sign in to comment.