Skip to content

Commit

Permalink
prevent double dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 24, 2024
1 parent ea81bff commit e422e77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invoker.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
(e) => {
if (e.type == "invoke" && e.isTrusted) {
e.stopImmediatePropagation();
e.preventDefault();
}
},
true,
Expand All @@ -26,6 +27,7 @@
(e) => {
if (e.type == "command" && e.isTrusted) {
e.stopImmediatePropagation();
e.preventDefault();
}
},
true,
Expand Down

0 comments on commit e422e77

Please sign in to comment.