From f39758b1031202339ee0b4251763b6d09d3d2da5 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:32:40 +0200 Subject: [PATCH] Only create sortable when not disabled (#20565) --- src/components/ha-sortable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-sortable.ts b/src/components/ha-sortable.ts index b3a565dd4758..e86c32dd779a 100644 --- a/src/components/ha-sortable.ts +++ b/src/components/ha-sortable.ts @@ -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(); } }