-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 to not move items / How to only call callback/emit change event? #1874
Comments
@igorlvicente Have you checked out the vue bindings? |
No, I have not. Where can I read about it? |
@igorlvicente https://github.com/SortableJS/Vue.Draggable Because Sortable manipulates the DOM and so does Vue, the bindings basically reverses what Sortable does and allows Vue to take control. |
That doesn't help my specific case because I use the Element UI library and I don't have access to the sortable items' wrapper. |
I also encountered this problem. Have you solved it |
My problem is that I use Sortable with Vue.
That means that the array (therefore the order of the items) are defined by a state outside of Sortable and DOM.
I have this problem that I was not able to solve:
initial
tofinal
initial
)final
I think the way would it be to not change the order on DOM, just trigger a change to be handled for whatever has the power.
I don't know if I make myself clear enough, but any questions, let me know.
The text was updated successfully, but these errors were encountered: