Skip to content

Commit

Permalink
Disable catchInteraction on hui-generic-entity-row (#217)
Browse files Browse the repository at this point in the history
Requires HA >= 2021.12.4
  • Loading branch information
benct committed Dec 22, 2021
1 parent 9d379a3 commit 7f8b05c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class MultipleEntityRow extends LitElement {
.hass="${this._hass}"
.config="${this.config}"
.secondaryText="${this.renderSecondaryInfo()}"
.catchInteraction=${false}
>
<div class="${this.config.column ? 'entities-column' : 'entities-row'}">
${this.entities.map((entity) => this.renderEntity(entity.stateObj, entity))}${this.renderMainEntity()}
Expand Down Expand Up @@ -150,10 +151,7 @@ class MultipleEntityRow extends LitElement {
}

clickHandler(entity, actionConfig) {
return (e) => {
e.stopPropagation();
handleClick(this, this._hass, { entity, tap_action: actionConfig }, false, false);
};
return () => handleClick(this, this._hass, { entity, tap_action: actionConfig }, false, false);
}
}

Expand Down

0 comments on commit 7f8b05c

Please sign in to comment.