Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Drag and Drop without Clone or Move?

Open gregg-cbs opened this issue 4 years ago • 3 comments

Hi,

Im hoping you can guide me here, i cant seem to figure this out.

I am using sortable.js in react. I want to drag an item from 1 column into another but i dont want the item to move or clone, i just want to handle the drop event so I can make a request that will update the data which react uses to refresh the dom which will put the item in the column it was dropped in.

react freaks out when the dom is updated externally so im running into issues.

any help will be greatly appreciated and thank you for this awesome lib.

gregg-cbs avatar Apr 02 '21 14:04 gregg-cbs

Yes I would also like to move to catch the drop event, to create a garbage bin to drag items into

hb0nes avatar Jul 20 '21 22:07 hb0nes

You may need to delete dom yourself

yaolunmao avatar Feb 14 '22 01:02 yaolunmao

I ended up using react-beautiful-dnd which allowed me to achieve the desired effect.

gregg-cbs avatar Feb 23 '22 13:02 gregg-cbs