This commit is contained in:
Thomas Lovén 2019-06-22 20:12:16 +02:00
parent d3e8e5f354
commit e796ea87aa
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@
</div> </div>
<div id="toggle"> <div id="toggle">
<ha-icon <ha-icon
@click="${()=>this.open=!this.open}" @click="${e=>{e.stopPropagation(),this.open=!this.open}}"
icon=${this.open?"mdi:chevron-up":"mdi:chevron-down"} icon=${this.open?"mdi:chevron-up":"mdi:chevron-down"}
></ha-icon> ></ha-icon>
</div> </div>

View File

@ -78,7 +78,11 @@ class FoldEntityRow extends LitElement {
</div> </div>
<div id="toggle"> <div id="toggle">
<ha-icon <ha-icon
@click="${() => this.open = !this.open}" @click="${(ev) => {
ev.stopPropagation();
this.open = !this.open;
}
}"
icon=${this.open ? "mdi:chevron-up" : "mdi:chevron-down"} icon=${this.open ? "mdi:chevron-up" : "mdi:chevron-down"}
></ha-icon> ></ha-icon>
</div> </div>