Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

[bug] MultiDrag - selectedClass and ghostClass with same class

Open cavasinf opened this issue 3 years ago • 0 comments

Describe the bug

With MultiDrag activated and using selectedClass and ghostClass with same class. At the end of the sort, the first item looses his selectedClass class, but it is still movable with the others.

sortable_multi

To Reproduce

Steps to reproduce the behavior:

  1. Use selectedClass and ghostClass with same class
  2. Select 2+ item
  3. Change position
  4. First element is not with the select class

Expected behavior

First item should still be with the selected class.

Information

sortablejs = ^1.15.0

Reproduction

jsbin: https://jsbin.com/hojayus/1/edit?html,css,js,output

cavasinf avatar Apr 13 '22 15:04 cavasinf