Skip to content

Commit

Permalink
Show correct cursor if tap_action is set to "none" (#10963)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacegaier committed Dec 20, 2021
1 parent 1f7d4c2 commit 50c3979
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/panels/lovelace/components/hui-generic-entity-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ class HuiGenericEntityRow extends LitElement {
}

const domain = computeDomain(this.config.entity);
// By default, we always show a pointer, since if there is no explicit configuration provided,
// the frontend always assumes "more-info" in the action handler. We only need to hide the pointer
// if the tap action is explicitly set to "none".
const pointer = !(
this.config.tap_action && this.config.tap_action.action !== "none"
this.config.tap_action && this.config.tap_action.action === "none"
);

const hasSecondary = this.secondaryText || this.config.secondary_info;
Expand Down

0 comments on commit 50c3979

Please sign in to comment.