Skip to content

Conversation

@mtraynham
Copy link
Contributor

Related to #17

This stores the initial drag index in the dndState and provides it on an extended DragEvent during any of the link/move/copy/end emitters so a user can properly remove an item, such as in cases like primitives where an indexOf would otherwise be insufficient.

@mtraynham mtraynham force-pushed the track_initial_index branch from d6cea3f to 438d8d8 Compare May 1, 2018 17:53
@mtraynham
Copy link
Contributor Author

I noticed an issue and it seems this isn't entirely correct. Once drop happens the array may have shifted all the elements and thus the original drag index would be incorrect. Need to rethink this a bit.

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