From 77c17861711aa85f3c5bdbdb699af53cf8e7d2fb Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 22 Jan 2025 15:25:06 +0100 Subject: [PATCH] Fix delete button for state content in iOS and Android (#23847) --- src/components/entity/ha-entity-state-content-picker.ts | 3 +-- src/components/ha-selector/ha-selector-select.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/entity/ha-entity-state-content-picker.ts b/src/components/entity/ha-entity-state-content-picker.ts index 2ccc606668..2e1e25c988 100644 --- a/src/components/entity/ha-entity-state-content-picker.ts +++ b/src/components/entity/ha-entity-state-content-picker.ts @@ -178,7 +178,7 @@ class HaEntityStatePicker extends LitElement { no-style @item-moved=${this._moveItem} .disabled=${this.disabled} - handle-selector="[data-handle]" + handle-selector="button.primary.action" > ${repeat( @@ -194,7 +194,6 @@ class HaEntityStatePicker extends LitElement { @remove=${this._removeItem} .label=${label} selected - data-handle > ${label} diff --git a/src/components/ha-selector/ha-selector-select.ts b/src/components/ha-selector/ha-selector-select.ts index bb5fb989ef..7e0f9ed52d 100644 --- a/src/components/ha-selector/ha-selector-select.ts +++ b/src/components/ha-selector/ha-selector-select.ts @@ -156,7 +156,7 @@ export class HaSelectSelector extends LitElement { no-style .disabled=${!this.selector.select.reorder} @item-moved=${this._itemMoved} - handle-selector="[data-handle]" + handle-selector="button.primary.action" > ${repeat( @@ -172,7 +172,6 @@ export class HaSelectSelector extends LitElement { @remove=${this._removeItem} .label=${label} selected - data-handle > ${this.selector.select?.reorder ? html`