Skip to content

Conversation

@that-richan
Copy link
Contributor

Types currentTarget inside the event handler in the on function. Hopefully not missing something :)

Ideally we could use the EventHandler type, but that would require importing it and I did not figure out how to properly do that in this setup without any errors :)

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2025

🦋 Changeset detected

Latest commit: 4f4cb94

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot
Copy link

@that-richan that-richan force-pushed the that-richan/on-event-handler branch from 24633ab to 6d3bd05 Compare December 16, 2025 22:19
@github-actions
Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@17370

Copy link
Member

@Rich-Harris Rich-Harris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@Rich-Harris Rich-Harris merged commit acd7525 into sveltejs:main Dec 22, 2025
14 checks passed
@github-actions github-actions bot mentioned this pull request Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants