Skip to content

Commit

Permalink
Update packages/svelte/src/internal/client/render.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Feb 23, 2024
1 parent ff1ae81 commit 7039ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ function handle_event_propagation(handler_element, event) {
const at_idx = path.indexOf(handled_at);
if (
at_idx !== -1 &&
(handler_element === owner_document || handler_element === /** @type {any} */ (window))
(handler_element === document || handler_element === /** @type {any} */ (window))
) {
// This is the fallback document listener or a window listener, but the event was already handled
// -> ignore, but set handle_at to document/window so that we're resetting the event
Expand Down

0 comments on commit 7039ae1

Please sign in to comment.