Skip to content

Commit

Permalink
avoid more-info pop up on icon click (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Dec 19, 2021
1 parent 00e08cc commit f8a54a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion climate-mode-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@
(mode.temperature == null ||
mode.temperature === this.state.temperature);

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

const defaultColor = defaultColors[mode.preset_mode || mode.hvac_mode];
const defaultIcon = defaultIcons[mode.preset_mode || mode.hvac_mode];
Expand Down

0 comments on commit f8a54a7

Please sign in to comment.