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

using HTML5 Drag n Drop API doesn't work #310

Closed
sgratzl opened this issue Apr 26, 2020 · 4 comments
Closed

using HTML5 Drag n Drop API doesn't work #310

sgratzl opened this issue Apr 26, 2020 · 4 comments
Labels
Help Wanted General issue which needs help

Comments

@sgratzl
Copy link

sgratzl commented Apr 26, 2020

I'm trying to implement an extension which uses the HTML5 Drag n Drop API (https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API). While the dragstart and co events work, it immediately shown an not allowed cursor and no dragEnter or dragOver events are fired. It seems like that the window itself (in this case a configure popup) is prohibiting the drop operation.

Any idea what I can do to make it work?

@merlijnbuit
Copy link

Hi Sgratzl,

We have the same challenge.
you can use alternative packages to get this to work like https://github.com/atlassian/react-beautiful-dnd

Merlijn

@sgratzl
Copy link
Author

sgratzl commented Apr 28, 2020

thx, in the meanwhile I also implemented a custom solution without the native api

@merlijnbuit
Copy link

Great! would you mind sharing the package or a snippet here? So other developers can learn from it?

@sgratzl
Copy link
Author

sgratzl commented Apr 28, 2020

in the end I used something similar to this: https://codepen.io/sgratzl/pen/MWaoOXz There is for sure a library which would do a similar thing.

@bcantoni bcantoni added the Help Wanted General issue which needs help label Jan 5, 2022
@bcantoni bcantoni closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted General issue which needs help
Projects
None yet
Development

No branches or pull requests

3 participants