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

use draggable index for re-ordering elements in the model #44

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

gsmith-daed
Copy link
Contributor

When using the sortable.js "draggable" option to exclude HTML nodes, the model list is re-ordered incorrectly unless the oldDraggableIndex and newDraggableIndex fields of the event are used to update the store.

oldIndex and oldDraggableIndex match when the "draggable" option is not used, so I believe this fix works for both cases.

…agging when excluding nodes using sortable.js draggable option
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.

None yet

2 participants