Skip to content

Commit 1930c98

Browse files
authored
fix drag ang drop in firefox (#718)
1 parent c1dfea0 commit 1930c98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/cards/chips-card/chips-card-chips-editor.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export class ChipsCardEditorChips extends MushroomBaseElement {
6363
: this.chips!.map(
6464
(chipConf, index) => html`
6565
<div class="chip">
66-
<ha-icon class="handle" icon="mdi:drag"></ha-icon>
66+
<div class="handle">
67+
<ha-icon icon="mdi:drag"></ha-icon>
68+
</div>
6769
${html`
6870
<div class="special-row">
6971
<div>
@@ -287,6 +289,10 @@ export class ChipsCardEditorChips extends MushroomBaseElement {
287289
cursor: move;
288290
}
289291
292+
.chip .handle > * {
293+
pointer-events: none;
294+
}
295+
290296
.special-row {
291297
height: 60px;
292298
font-size: 16px;

0 commit comments

Comments
 (0)