Skip to content

Commit

Permalink
Merge pull request #160 from oddbird/prevent-default-on-clicks-to-avo…
Browse files Browse the repository at this point in the history
…id-firefox-crash

prevent default on clicks to avoid firefox crash
  • Loading branch information
jgerigmeyer authored Dec 7, 2023
2 parents da0b515 + 9eef4ea commit cb911a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export function apply() {
const invoker = target.closest('[popovertargetaction],[popovertarget]');
if (invoker) {
popoverTargetAttributeActivationBehavior(invoker as HTMLButtonElement);
event.preventDefault();
return;
}
};
Expand Down

0 comments on commit cb911a5

Please sign in to comment.