We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72e46d3 commit 27a8581Copy full SHA for 27a8581
packages/svelte/src/internal/client/dom/elements/events.js
@@ -168,8 +168,11 @@ export function handle_event_propagation(event) {
168
// mounted apps. In this case we don't want to trigger events multiple times.
169
var path_idx = 0;
170
171
+ // the `last_propagated_event === event` check is redundant, but
172
+ // without it the variable will be DCE'd and things will
173
+ // fail mysteriously in Firefox
174
// @ts-expect-error is added below
- var handled_at = event.__root;
175
+ var handled_at = last_propagated_event === event && event.__root;
176
177
if (handled_at) {
178
var at_idx = path.indexOf(handled_at);
0 commit comments