Merge pull request #379 from dermotduffy/editor-bail

Don't allow closing a submenu to close the editor dialog
This commit is contained in:
Dermot Duffy
2022-02-14 20:51:13 -08:00
committed by GitHub
+6
View File
@@ -64,6 +64,12 @@ export class FrigateCardSubmenu extends LitElement {
return html`
<ha-button-menu
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
style="${styleMap(this.submenu.style || {})}"