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

Swappable oldIndex & newIndex not available. #294

Open
estrellajm opened this issue Oct 22, 2018 · 2 comments
Open

Swappable oldIndex & newIndex not available. #294

estrellajm opened this issue Oct 22, 2018 · 2 comments
Labels
enhancement improve upon existing code

Comments

@estrellajm
Copy link

In Draggable (SortableStopEvent) the 'oldIndex' & 'newIndex' are available

draggable

In Swappable (SwappableStopEvent) the 'oldIndex' & 'newIndex' are NOT available

swappable

Can you please advise how to get the indexes of the array items being swapped?

@PezeM
Copy link

PezeM commented Jul 10, 2019

Have anyone found any solution to this problem? I tried getting id of the parent div which in DOM was the correct index however event.data.dragEvent.originalSource.parentElement.id was returning alwasy the old index

@bahung1221 bahung1221 added the enhancement improve upon existing code label Jan 17, 2021
@gimzani
Copy link

gimzani commented Sep 30, 2024

This would make the library USEFUL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve upon existing code
Projects
None yet
Development

No branches or pull requests

4 participants