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

how to delete e.dragElem ? #10

Closed
sayanbrainium opened this issue Jul 26, 2017 · 2 comments
Closed

how to delete e.dragElem ? #10

sayanbrainium opened this issue Jul 26, 2017 · 2 comments

Comments

@sayanbrainium
Copy link

Hi I would like to delete the dropped item in drop are using e.dragElem or empty drop area , how can I do that?

@peterh32
Copy link
Owner

peterh32 commented Aug 2, 2018

See here https://github.com/peterh32/react-drag-drop-container/blob/master/demo/DragFoodToAnimalsDemo.jsx#L22 -- after a successful drop it does
e.sourceElem.style.visibility="hidden";
You could do the same thing only you'd set display='none' or delete the thing altogether.

@peterh32
Copy link
Owner

peterh32 commented Aug 2, 2018

I hope that answered your question. If not then re-open this or create a new issue.

@peterh32 peterh32 closed this as completed Aug 2, 2018
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

2 participants