mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Pass correct node to handleClick
This commit is contained in:
parent
2758e86fab
commit
5a7841e6bf
@ -40,8 +40,8 @@ export class HuiIconElement extends hassLocalizeLitMixin(LitElement)
|
||||
<ha-icon
|
||||
.icon="${this._config.icon}"
|
||||
.title="${computeTooltip(this.hass!, this._config)}"
|
||||
@ha-click="${(ev) => handleClick(ev, this.hass!, this._config!, false)}"
|
||||
@ha-hold="${(ev) => handleClick(ev, this.hass!, this._config!, true)}"
|
||||
@ha-click="${() => handleClick(this, this.hass!, this._config!, false)}"
|
||||
@ha-hold="${() => handleClick(this, this.hass!, this._config!, true)}"
|
||||
.longPress="${longPress()}"
|
||||
></ha-icon>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user