clauderic / dnd-kit

The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
http://dndkit.com
MIT License
11.9k stars 602 forks source link

`DragOverlay` works but is invisible #1397

Closed ronny-lark closed 1 month ago

ronny-lark commented 1 month ago

This is a POC I'm working on: https://codesandbox.io/p/devbox/j4d5xk?file=%2Fsrc%2FApp.tsx%3A173%2C23 I want to drag items from either list to the other. I've hit a wall where items would become hidden when dragging if their scrollable containers had overflow set to auto or hidden. So I used DragOverlay. When dragging, I can see it the drag works, and the droppables are hovered correctly, but the actualy overlay doesn't show. It seems like I'm not dragging anything. What am I doing wrong?

ronny-lark commented 1 month ago

I passed props to the wrong thing, my mistake. Thanks!