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 ff1ae81 commit 7039ae1Copy full SHA for 7039ae1
packages/svelte/src/internal/client/render.js
@@ -1405,7 +1405,7 @@ function handle_event_propagation(handler_element, event) {
1405
const at_idx = path.indexOf(handled_at);
1406
if (
1407
at_idx !== -1 &&
1408
- (handler_element === owner_document || handler_element === /** @type {any} */ (window))
+ (handler_element === document || handler_element === /** @type {any} */ (window))
1409
) {
1410
// This is the fallback document listener or a window listener, but the event was already handled
1411
// -> ignore, but set handle_at to document/window so that we're resetting the event
0 commit comments