mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
Fix event entity row propagation (#30163)
* Stop event entity row value propagation * Catch interaction
This commit is contained in:
committed by
Bram Kragten
parent
22c0035e60
commit
4020bcec42
@@ -52,7 +52,11 @@ class HuiEventEntityRow extends LitElement implements LovelaceRow {
|
||||
}
|
||||
|
||||
return html`
|
||||
<hui-generic-entity-row .hass=${this.hass} .config=${this._config}>
|
||||
<hui-generic-entity-row
|
||||
.hass=${this.hass}
|
||||
.config=${this._config}
|
||||
.catchInteraction=${false}
|
||||
>
|
||||
<div
|
||||
@action=${this._handleAction}
|
||||
.actionHandler=${actionHandler({
|
||||
@@ -81,6 +85,8 @@ class HuiEventEntityRow extends LitElement implements LovelaceRow {
|
||||
}
|
||||
|
||||
private _handleAction(ev: ActionHandlerEvent) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
handleAction(this, this.hass!, this._config!, ev.detail.action);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user