-
Hey! We're currently testing a replacement for Well, until I load it on local and it doesn't work anymore. I can see that it's clearly recognizing the droppable area and that it gives me the correct id of the droppable area, but...it doesn't actually drop. When I let go of the mouse inside the droppable, the item just reverts back to its original location. I can see that the DOM hasn't changed either, the draggable doesn't become a child of the droppable. Problem is, I've no idea how to even debug this. I copy-pasted the implementation from the docs and that's that. I cleared all possibly-problematic CSS as well. What's my next step here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If you can put up a codesandbox example, I'll point you to the bug. |
Beta Was this translation helpful? Give feedback.
-
That's correct, the library follows the declarative nature of React, and gives full control over to consumers as to whether or not items should be moved from one container to another on drop. The library itself simply facilitates detecting which draggable was picked up, whether it is moved over a droppable, and where it was dropped. It does not move draggable elements for consumers from one position in the React tree to another. Doing so would perhaps require less setup for consumers, but it'd also be extremely limiting. This is stated in the |
Beta Was this translation helpful? Give feedback.
That's correct, the library follows the declarative nature of React, and gives full control over to consumers as to whether or not items should be moved from one container to another on drop.
The library itself simply facilitates detecting which draggable was picked up, whether it is moved over a droppable, and where it was dropped. It does not move draggable elements for consumers from one position in the React tree to another. Doing so would…