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

Drop does not work in the basic example #33

Open
icehongssii opened this issue Sep 20, 2018 · 3 comments
Open

Drop does not work in the basic example #33

icehongssii opened this issue Sep 20, 2018 · 3 comments

Comments

@icehongssii
Copy link

icehongssii commented Sep 20, 2018

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';

Drag Me!

I'm a valid drop target for the object above since we both have the same targetKey!

`
@eduardohralejandro
Copy link

I am having the same question, please let me know if you already got a solution, thank you

@kadariuk
Copy link

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.

@born-kes
Copy link

use

.ddcontainerghost{
    pointer-events:none;
}

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