Skip to content

Conversation

@that-richan
Copy link

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: 6d3bd05

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

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.

1 participant