react-dnd / dnd-core

Drag and drop sans the GUI [Legacy Repo]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

endDrop notification.

is opened this issue · comments

DropTarget component can get drag object enter or leave state by isOver changes through componentWillReceiveProps method. I want to know any simple way to tell targets the drag is end.

I see dragSource has endDrop callback. it's possible implement in dropTarget?

commented

Only the drop target that received the drop will have drop() hook called. If you want all drop targets to react to an arbitrary drop, you'll need to arrange this manually.

You can also check changes of isDragging in componentWillReceiveProps. When it changes from true to false, it means the drop has occurred.