mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Stop MouseEvent from reach parent element (#2174)
This commit is contained in:
parent
f1a6122699
commit
77711ea711
@ -145,13 +145,15 @@ class HuiMediaPlayerEntityRow extends hassLocalizeLitMixin(LitElement)
|
||||
return prefix && suffix ? `${prefix}: ${suffix}` : prefix || suffix || "";
|
||||
}
|
||||
|
||||
private _playPause(): void {
|
||||
private _playPause(ev: MouseEvent): void {
|
||||
ev.stopPropagation();
|
||||
this.hass!.callService("media_player", "media_play_pause", {
|
||||
entity_id: this._config!.entity,
|
||||
});
|
||||
}
|
||||
|
||||
private _nextTrack(): void {
|
||||
private _nextTrack(ev: MouseEvent): void {
|
||||
ev.stopPropagation();
|
||||
this.hass!.callService("media_player", "media_next_track", {
|
||||
entity_id: this._config!.entity,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user