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

The item reference is not passed. #2

Closed
sibalonat opened this issue Apr 15, 2023 · 1 comment
Closed

The item reference is not passed. #2

sibalonat opened this issue Apr 15, 2023 · 1 comment

Comments

@sibalonat
Copy link

So so far, after some reading, I choose to use this plugin for one of my projects. It was working fine until I encountered something I probably will need some reworking or at least you can give me some direction about this.
So, in vue draggable, I know you can reference the item in v-for, in this plugin because the instantiation begins before v-for, it's impossible to make a reference of the element data it's changing the order. Do you know a way to bypass that?

@eliottvincent
Copy link
Owner

Hey! You have access to the index of the item triggering the change in the end event: https://github.com/eliottvincent/vue3-sortablejs#order-mutation

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