Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Using sort: false with multiple

Open sinnbeck opened this issue 1 year ago • 2 comments

Describe the bug

If you have 2 sortable areas with the multiple plugin and the first has sort: false, it still sorts the first if you drag from the first box, and back but dont select the first item

To Reproduce Steps to reproduce the behavior:

  1. Select item 1 and 2 in the example
  2. Drag from item 2 into the second list
  3. Drag back to the original list
  4. The items are now swapped

Expected behavior I would expect the first list to keep the old the order

Information sortablejs = 1.15.2

Additional context Add any other context about the problem here.

Reproduction https://jsbin.com/nomeyixera/edit?js,output

Edit: Fun thing is that is seems to work on second drag. If I deselect everything and try again, it works as expected..

sinnbeck avatar Mar 27 '24 10:03 sinnbeck

not sure if I am going crazy but using your jsbin example I couldn't reproduce the issue. Can you confirm what browser?

Edit: I am using Firefox V.125

nicholasjonnes avatar May 10 '24 00:05 nicholasjonnes

I couldn't reproduce either. (Edge - Version 124.0.2478.67 x64)

image

Funny thing is, when I started swapping really fast, I end up breaking it every time to where you can move the selected items anymore. You can select other items and move them, but the items that were selected when it originally breaks are immovable.

marchershey avatar May 10 '24 00:05 marchershey

Hm weird. I am certain I checked it multiple times and was able to recreate it. I will close this for now and reopen if I find out how I was able to break it

sinnbeck avatar May 15 '24 12:05 sinnbeck