From 7c5fe732c4d06ec2904da6c103312a8063e1d676 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 12 Aug 2022 19:23:53 -0700 Subject: [PATCH] Drawer handle shouldn't activate card actions --- src/components/drawer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/drawer.ts b/src/components/drawer.ts index bfcc1f9d..f011dbf5 100644 --- a/src/components/drawer.ts +++ b/src/components/drawer.ts @@ -12,6 +12,7 @@ import 'side-drawer'; import { SideDrawer } from 'side-drawer'; import drawerInjectStyle from '../scss/drawer-inject.scss'; import drawerStyle from '../scss/drawer.scss'; +import { stopEventFromActivatingCardWideActions } from '../utils/action'; @customElement('frigate-card-drawer') export class FrigateCardDrawer extends LitElement { @@ -100,7 +101,8 @@ export class FrigateCardDrawer extends LitElement { ? html`
{ + @click=${(ev: Event) => { + stopEventFromActivatingCardWideActions(ev); this.open = !this.open; }} >