Svelte

fix: do not dispatch transition event with animation

#18122

Closing issue

Pull request

Merged
D
dabund24
Apr 17, 2026, 8:48 PM

closes related: and

Changes

move dispatch_event() calls in transitions.js out of animate() function using an additional on_begin() callback parameter. Doing so makes it possible to dispatch the introstart and outrostart events only from transition().

Testing

add a test checking that svelte dispatches no event when it runs an animation

Info

Merged at Apr 20, 2026, 12:18 PM
Merged by Rich-Harris
Assignees None
Reviewers None
Labels None
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)