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

Removing coppied item without using removeOnSpill #1041

Open
5 tasks done
ibrahimunal opened this issue May 16, 2021 · 0 comments
Open
5 tasks done

Removing coppied item without using removeOnSpill #1041

ibrahimunal opened this issue May 16, 2021 · 0 comments

Comments

@ibrahimunal
Copy link

Change each [ ] to [x] when you have done it.

Removing copied item without using removeOnSpill

I have two horizontal div which bottom one represents a set of images and I copy them to the upper container with dragula's copy attribute. As I hover the mouse on the images on the upper body I want to remove the dragged item with the delete button.
removeOnSpill work fine in my project however I need to create a system that removes the dropped( or copied ) item with a button click.
I tried to destroy the group but it does not remove the dropped item but only disallows to drag option.
Since I have an issue with deleting I also have with adding. In my system as I click the images on the bottom, I get its image id and add it on the upper div. However, if I first drag and drop image with dragula it adds the image then if I click the image it adds again which creates two images. Any suggestion on how to handle these issues, what would be the best approach?

I only created this simple example in order to explain what I meant
Adsız

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

1 participant