Skip to content

Commit

Permalink
Todo button menu: add stop propagation (#20996)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Jun 5, 2024
1 parent cd73b8a commit 4e8de1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/panels/lovelace/cards/hui-todo-list-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { repeat } from "lit/directives/repeat";
import memoizeOne from "memoize-one";
import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element";
import { supportsFeature } from "../../../common/entity/supports-feature";
import { stopPropagation } from "../../../common/dom/stop_propagation";
import "../../../components/ha-card";
import "../../../components/ha-check-list-item";
import "../../../components/ha-checkbox";
Expand Down Expand Up @@ -243,7 +244,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
${this.todoListSupportsFeature(
TodoListEntityFeature.MOVE_TODO_ITEM
)
? html`<ha-button-menu>
? html`<ha-button-menu @closed=${stopPropagation}>
<ha-icon-button
slot="trigger"
.path=${mdiDotsVertical}
Expand Down Expand Up @@ -287,7 +288,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
${this.todoListSupportsFeature(
TodoListEntityFeature.DELETE_TODO_ITEM
)
? html`<ha-button-menu>
? html`<ha-button-menu @closed=${stopPropagation}>
<ha-icon-button
slot="trigger"
.path=${mdiDotsVertical}
Expand Down

0 comments on commit 4e8de1f

Please sign in to comment.