Don't allow closing a submenu to close the editor dialog.

This commit is contained in:
Dermot Duffy
2022-02-14 20:27:12 -08:00
parent ded6d1c476
commit 9ad37acb53
+6
View File
@@ -64,6 +64,12 @@ export class FrigateCardSubmenu extends LitElement {
return html` return html`
<ha-button-menu <ha-button-menu
corner=${this.corner || "BOTTOM_LEFT"} corner=${this.corner || "BOTTOM_LEFT"}
@closed=${
// Prevent the submenu closing from closing anything upstream (e.g.
// selecting a submenu in the editor dialog should not close the
// editor, see https://github.com/dermotduffy/frigate-hass-card/issues/377).
(ev) => ev.stopPropagation()
}
> >
<ha-icon-button <ha-icon-button
style="${styleMap(this.submenu.style || {})}" style="${styleMap(this.submenu.style || {})}"