Skip to content

feat: add onBeforeDrop and onDropCommit lifecycle events - #19

Merged
Horuse merged 1 commit into
mainfrom
feat/pre-drop-event
Aug 26, 2026
Merged

Horuse merged 1 commit into
mainfrom
feat/pre-drop-event

Conversation

@Horuse

@Horuse Horuse commented Aug 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

onBeforeDrop fires the moment a drop is accepted, before the ghost starts
flying — the only point where a consumer can project the outcome without
unmounting the element the ghost animates from.

onDropCommit fires when the ghost lands, right before onDrop.
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svelte-dnd Ready Ready Preview Aug 26, 2026 11:53am

@Horuse
Horuse merged commit 45e2288 into main Aug 26, 2026
4 checks passed
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