Skip to content
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

Animate re-ordering of items during state change #787

Open
patrickdundas opened this issue Apr 24, 2024 · 0 comments
Open

Animate re-ordering of items during state change #787

patrickdundas opened this issue Apr 24, 2024 · 0 comments

Comments

@patrickdundas
Copy link

Description

The animations in this library for user interaction of drag and drop are really nice. In my use case, I allow a user to drop items between lists, but then the lists are auto-ordered by some criteria (ie. alphabetical). My user drag and drop really just exists to allow users to transfer items between lists, not reorder.

In my onDragEnd, I re-order the items in each list alphabetically after the user drops a Draggable, but this causes the nice movement animation to where the user put the item, and then a non animated reordering of the items when the state updates to alphabetize.

How can I animate any movement / reordering of the items, whether caused by user drag or state change?

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

No branches or pull requests

1 participant