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 could I get the new one and the old one with onMove event? #101

Open
moliyu opened this issue Feb 21, 2024 · 2 comments
Open

How could I get the new one and the old one with onMove event? #101

moliyu opened this issue Feb 21, 2024 · 2 comments

Comments

@moliyu
Copy link

moliyu commented Feb 21, 2024

onMove event didn't give the oldIndex and newIndex as the event onEnd. I want to control whether it can be sorted by myself.

@Aaron-zon
Copy link
Contributor

after the drag and drop operation concludes, it's possible to sort the array.

@moliyu
Copy link
Author

moliyu commented Feb 21, 2024

after the drag and drop operation concludes, it's possible to sort the array.

I have a nested data and I only want to sort at the same level. I could return false or true if i can compare the parentId between them.

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

2 participants