Rails & Vue.js Trello Clone - Part 3 Discussion
Dicussion for Rails & Vue.js Trello Clone - Part 3
In `draggable` tag, `v-model` should be changed to `:list` because it's immutable. So drag and drop won't be able to update it.
my hero ^
<draggable :list="lists" :options="{group: 'lists'}" class="row dragArea" @end="listMoved">
Thank you so much! I was wondering why drag & drop was not working properly. I mean when you drag & drop the list was moving back to its original place.
Also it says that,
options props has been deprecated in version v2.20.
So now we would use
<draggable :list="lists" group="lists" class="row dragArea" @end="listMoved">
I think.
Sorting the other way, i.e. `->{ order( position: :desc ) }` causes objects to get the wrong position on page refresh. Is there other configuration that needs to happen to make it set that properly on drag?
If I don't want to drag and drop the columns, will I just remove the draggable directive from the columns? I still want to be able to drag cards from column to column ( and update the database) as well as modify the position of cards within the lists.
Thoughts?