SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.78k stars 3.7k forks source link

multidrag doesn't restore the previous style of the element #2184

Open daminho opened 2 years ago

daminho commented 2 years ago

I was working around with multiDrag and found this problem.

My elements before multiDragging were square but after multiDragging it resized equally to its children

Then I found out that if I put the style directly to the elements then some of the style's attributes are not restored after multiDragging, but if I put the needed style to the class of the element then it worked

error demo: https://jsbin.com/yerodic/edit?html,css,js,console,output

no error demo: https://jsbin.com/mixilekotu/1/edit?html,css,js,console,output

wpjscc commented 1 year ago

same problem

wpjscc commented 1 year ago

It seems that only the width and height have been reset