From 6c62efd39b6f8e628d78711202cf0915f1f733ef Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 17 Mar 2023 08:21:39 +1030 Subject: [PATCH] fix(popup): allow popup trigger button to be nested --- src/popup/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup/popup.ts b/src/popup/popup.ts index d6a4110..e463998 100644 --- a/src/popup/popup.ts +++ b/src/popup/popup.ts @@ -238,7 +238,7 @@ export default class PopupElement extends HTMLElement { } private get button(): HTMLElement { - return this.children[0] as HTMLElement; + return this.querySelector('button, [role=button]')!; } private get content(): HTMLElement {