Skip to content

Commit

Permalink
disable catchInteraction on hui-generic-entity-row (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Dec 22, 2021
1 parent f8a54a7 commit bf684be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions climate-mode-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
const hass = this._hass;

return html`
<hui-generic-entity-row .hass="${hass}" .config="${config}">
<hui-generic-entity-row .hass="${hass}" .config="${config}" .catchInteraction=${false}>
<div class="flex">
${config.modes.map((mode) => this.renderMode(mode))}
</div>
Expand All @@ -73,8 +73,7 @@
(mode.temperature == null ||
mode.temperature === this.state.temperature);

const onClick = (e) => {
e.stopPropagation();
const onClick = () => {
this.setMode(mode);
}

Expand Down Expand Up @@ -171,4 +170,4 @@
Object.getPrototypeOf(
customElements.get("hui-masonry-view") || customElements.get("hui-view")
)
);
);

0 comments on commit bf684be

Please sign in to comment.