ng-sortable icon indicating copy to clipboard operation
ng-sortable copied to clipboard

Remove an item if it is not dropped into the drop area.

Open phuwin1995 opened this issue 8 years ago • 3 comments
trafficstars

Hi, Thank you for your awesome directive. It works like a charm. However, I have an issue that I don't know how to solve. An item in array1 is dragged over the array2, then a placeholder appears in drop area, but it is still added to the end array even when I drag that item out of the drop area. How can I remove the placeholder and the item if it is not over the drop area? Demonstrations: What I would like to achieve: The situation at the moment:

phuwin1995 avatar Dec 08 '16 12:12 phuwin1995

any workaround for a feature like this @a5hik? I am also looking for a delete trigger but can't find it.

janjanarnaldo avatar May 20 '18 07:05 janjanarnaldo

Looking at the issue, it should never occur, the example demos provided can be verified. the delete hook also available in one of examples.

a5hik avatar May 22 '18 16:05 a5hik

This happens when clone is set to true. It can be reproduced on the clone demo. Once the item is dragged over the drop area, even if it is moved out of that area, the item is inserted on drag end. @a5hik Any ideas on how to avoid or workaround?

CristinaSolana avatar Aug 23 '18 14:08 CristinaSolana