Open icehongssii opened 6 years ago
I am having the same question, please let me know if you already got a solution, thank you
If you refer to "Demo: Drag in the directions indicated" the drop doesn't work cause you must implement onDrop or onHit handler for fix element on DropTarget.
use
.ddcontainerghost{
pointer-events:none;
}
Above all I want to say thank you to build the easiest library to use! But, I am wondering If the example is actually working. I can drag but It does not fix on the drop target.
This is the code that i use
problem : drop is not working. It is able to drag but when I drop on the p tag. it comes back right away. purpose : I want to put "drag" div on the droptarget sentence. so that it can be fixed not moving.
`import { DragDropContainer, DropTarget } from 'react-drag-drop-container';
I'm a valid drop target for the object above since we both have the same targetKey!
`