Skip to content

Commit 7039ae1

Browse files
authored
Update packages/svelte/src/internal/client/render.js
1 parent ff1ae81 commit 7039ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ function handle_event_propagation(handler_element, event) {
14051405
const at_idx = path.indexOf(handled_at);
14061406
if (
14071407
at_idx !== -1 &&
1408-
(handler_element === owner_document || handler_element === /** @type {any} */ (window))
1408+
(handler_element === document || handler_element === /** @type {any} */ (window))
14091409
) {
14101410
// This is the fallback document listener or a window listener, but the event was already handled
14111411
// -> ignore, but set handle_at to document/window so that we're resetting the event

0 commit comments

Comments
 (0)