Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phuwin1995 opened this issue Dec 8, 2016 · 3 comments
Open

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

phuwin1995 opened this issue Dec 8, 2016 · 3 comments

Comments

@phuwin1995
Copy link

phuwin1995 commented Dec 8, 2016

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 phuwin1995 changed the title Remove item if it is not dropped into the drop area. Remove an item if it is not dropped into the drop area. Dec 8, 2016
@janjanarnaldo
Copy link

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

@a5hik
Copy link
Owner

a5hik commented May 22, 2018

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

@CristinaSolana
Copy link

CristinaSolana commented Aug 23, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants