Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Сlassname and attributes are not removed (Clone only list)

Open alex-snap opened this issue 9 years ago • 3 comments

Hi! Awesome library! But I have a problem. When I use pull: "clone" option, drop some element from this list to another, some attributes and class name of cloned item (which in source list) are not removed and this causing unexpected behavior for list. jsbin example: http://jsbin.com/duwijibidu/edit?html,js,output

alex-snap avatar Jan 20 '17 22:01 alex-snap

some attributes and class name of cloned item

I do not understand, please give an example.

RubaXa avatar Feb 16 '17 08:02 RubaXa

  1. Drag item (ex. "A") from "Source list" into "Target list"
  2. Inspect item "A" in "Source list" - it has classname "sortable-chosen", draggable="true" and style="will-change: transform;"
  3. All these attributes and styles disappear only after clicking on an item "A" in "Source list"

http://jsbin.com/cixadukode/edit?html,js,output

alex-snap avatar Feb 16 '17 14:02 alex-snap

Done: https://github.com/RubaXa/Sortable/commit/45f9618bc7bed4611c277002f241f21c9580b38c

RubaXa avatar Feb 16 '17 14:02 RubaXa