Skip to content

Commit

Permalink
fix(popup): allow popup trigger button to be nested
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Mar 16, 2023
1 parent 4e09d5f commit 6c62efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6c62efd

Please sign in to comment.