Skip to content

Commit

Permalink
verify popover attribute before invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Aug 27, 2024
1 parent be3a20d commit 4e43b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-components/src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class BaseButton extends FASTElement {
return;
}

if (this.popoverTargetElement) {
if (this.popoverTargetElement && !!this.popoverTargetElement.hasAttribute('popover')) {
switch (this.popovertargetaction) {
case 'hide':
this.popoverTargetElement?.hidePopover();
Expand Down

0 comments on commit 4e43b65

Please sign in to comment.