Skip to content

Feat: Add read-only binding focused #11271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert
  • Loading branch information
Rich-Harris committed Apr 21, 2024
commit ba3da6e9c6815644f38bd1d0eaece38b873eaef2
2 changes: 2 additions & 0 deletions packages/svelte/src/internal/client/dom/elements/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function event(event_name, dom, handler, capture, passive) {
return handler.call(this, event);
}
}

dom.addEventListener(event_name, target_handler, options);

// @ts-ignore
Expand Down Expand Up @@ -148,6 +149,7 @@ export function handle_event_propagation(handler_element, event) {

current_target = parent_element;
}

// @ts-expect-error is used above
event.__root = handler_element;
// @ts-expect-error is used above
Expand Down