Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

revert on spill drag class is not reverted

Open parthasarathygopu opened this issue 3 years ago • 7 comments

I'm also hoping we can get this behaviour in soon.

Allow me to add the following usability issue: when I drag an item from list 1 and hover it over list 2, I see the ghost being added. However, when I continue to drag it out of list 2, the ghost sticks around, even if I left list 2 with my mouse cursor. The is rather counter intuitive: just as the ghost is added when I hover over list 2, I would expect the ghost to be removed when I leave list 2.

This specifically holds true when list 1 is in "clone" mode. Without "clone" mode, I could see that the item should live either in list 1 or list 2 and then you explicitly need to drag them over to either one.

parthasarathygopu avatar Oct 13 '21 18:10 parthasarathygopu

@owen-m1 can you help me on this issue

parthasarathygopu avatar Oct 13 '21 19:10 parthasarathygopu

Currently the dragged item will always be in the last list it was dragged to, it can't be removed from every list unless you use the OnSpill plugin (which will remove it on drop). I could maybe make a function to remove it from a list if you drag away from it, but I don't have much time right now.

owen-m1 avatar Oct 14 '21 03:10 owen-m1

@owen-m1 i was using OnSpill plugin (which will remove it on drop), but i want to remove it from drag itself not drop

parthasarathygopu avatar Oct 25 '21 11:10 parthasarathygopu

Same issue I'm running into. I am running into this problem trying to add hover classes when an item is being dragged over another list. Like @parthasarathygopu I would also expect once an item is dragged out of a list that the hover class should be removed, but I am not finding a good method that allows me to know when an item has been dragged out of a list without it being dropped first.

chasedeanda avatar Nov 12 '21 22:11 chasedeanda

I'd love to see this resolved as well. I've tried to style the ghosted item to be hidden but this effects the dragging item as well and goofs it up as the width and height are dynamic and end up 0 if I set display none for the ghosted item.

joerattz avatar Sep 13 '22 15:09 joerattz

have you solved this yet? i'm trying to remove data when drag out of the list.

toviac avatar Jul 03 '23 03:07 toviac