Skip to content

Commit e422e77

Browse files
committed
prevent double dispatch
1 parent ea81bff commit e422e77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invoker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
(e) => {
1818
if (e.type == "invoke" && e.isTrusted) {
1919
e.stopImmediatePropagation();
20+
e.preventDefault();
2021
}
2122
},
2223
true,
@@ -26,6 +27,7 @@
2627
(e) => {
2728
if (e.type == "command" && e.isTrusted) {
2829
e.stopImmediatePropagation();
30+
e.preventDefault();
2931
}
3032
},
3133
true,

0 commit comments

Comments
 (0)