Remove an item if it is not dropped into the drop area.
phuwin1995 opened this issue · comments
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:
any workaround for a feature like this @a5hik? I am also looking for a delete trigger but can't find it.
Looking at the issue, it should never occur, the example demos provided can be verified. the delete hook also available in one of examples.
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?