Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

does disabling sorting really work? I want to drag between groups, but not sort

Open Madd0g opened this issue 4 years ago • 5 comments

Step by step scenario

Disabling sorting with param:

<draggable :sort='false' v-model='list' group="grouped">

Expected Solution

Expecting dragging only to work between lists, but dropping elements in the same group reorders them. From looking at the code, I see code calculating and updating indexes, but I don't see anything checking that sort option.

Thanks

Madd0g avatar Feb 16 '21 04:02 Madd0g

Hi, It works for me!

maybe try posting all the component?

jaumebalust avatar Mar 25 '21 11:03 jaumebalust

I have the same issue, however it works for me until I add event listeners, which for some reason disable the functionality of "sort" prop and when inspecting the draggable item, I see that "sort" becomes passed as attribute instead of prop.

This works

<draggable tag="div" class="row m-0" v-model="collections" :sort="false" group="collections">
                     ...
</draggable>

This doesn't

<draggable tag="div" class="row m-0" v-model="collections" :sort="false" group="collections" @start="myFunction">
                     ...
</draggable>

Marchiuzzz avatar Jun 04 '21 08:06 Marchiuzzz

Works for me :). Running latest version?

MariusSpring avatar Jun 15 '21 10:06 MariusSpring

Well I just moved to using the Sortbale.js itself since this was bugging out for me, works fine on Sortbale.js

Marchiuzzz avatar Jun 15 '21 13:06 Marchiuzzz

I have the same issue with the latest version

antsteyer avatar Nov 23 '23 09:11 antsteyer