From f8a54a7d1d80d61f60d4452dd5b0b0a24ca4a112 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Sun, 19 Dec 2021 16:24:46 +0100 Subject: [PATCH] avoid more-info pop up on icon click (#12) --- climate-mode-entity-row.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/climate-mode-entity-row.js b/climate-mode-entity-row.js index da28316..d2c0cee 100644 --- a/climate-mode-entity-row.js +++ b/climate-mode-entity-row.js @@ -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];