-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cards overlapping when I drag react-beautiful-dnd #2558
Comments
Hey have you found any solution to this issue ? I'm encountering same behaviour even though I used the {provided.placeholder} element which I thought would prevent it. |
I am using provided placeholders also but they are not working at all. I didn't find any normal solution to prevent it |
It looks like your droppable is set to For my use-case, with items that have a variable size, I managed to achieve this by keeping track of the index of the element that was dragged:
And then grabbing a reference to the HTML element currently being dragged from the renderClone method:
And finally inserting a placeholder when rendering the draggable nodes, that has the same height as the element we're dragging:
Hope this helps! |
I have create simple task management system with react, react-beautiful-dnd and material ui. But when I want to drag my task card, before and after my selected element just overlapping each other.
Screen.Recording.2023-12-13.at.10.25.26.AM.mov
Main problem is cards are overlapping, also when I want to drag lists they also overlapping also. How can I fix this problem ?
The text was updated successfully, but these errors were encountered: