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

how stop drag when target grid equal example ? #505

Open
hamedhmb opened this issue Dec 5, 2021 · 1 comment
Open

how stop drag when target grid equal example ? #505

hamedhmb opened this issue Dec 5, 2021 · 1 comment
Labels

Comments

@hamedhmb
Copy link

hamedhmb commented Dec 5, 2021

I want the item to return to its previous position when the item being dragged on the example grid?

@niklasramo
Copy link
Collaborator

When do you exactly want the item to return to it's previous position? One way that comes to mind in general is to keep track of the previous order of items and using sort method to put the items in the previous positions whenever you need that to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants