You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
In my case, draggable elements have relatively positioned elements, which anchor absolutely positioned elements.
These absolutely positioned elements are getting removed from the cloned element by react-beautiful-dnd. So I have to add them back to prevent broken UX during dragging and for a significant time after.
Here is a piece of working code. I can share the video of UX in action, if needed.
<DragDropContextonDragEnd={(result)=>{}}onDragStart={(start)=>{// add text element to DOM since react-beautiful-dnd removes it during dragconstdroppableId=start.source.droppableId;ensure_task_text(droppableId,total_shifts,text_to_right_trigger);}}key={`dnd_context_${resource.id}`}>{/* <Droppable droppableId={`machine-${resource.id}`} renderClone={render_task_row}> */}<DroppabledroppableId={`machine-${resource.id}`}>
There are two problems with this:
ensure_task_text is rather complex and fragile to maintain.
react-beautiful-dnd after some time inserts text node back into DOM, creating duplicates, that need to cleaned.
Suggested solution?
Simply allowing to disable the removal of absolutely positioned elements would reduce the complexity and remove both problems outlined above.
Issue
In my case, draggable elements have relatively positioned elements, which anchor absolutely positioned elements.
These absolutely positioned elements are getting removed from the cloned element by react-beautiful-dnd. So I have to add them back to prevent broken UX during dragging and for a significant time after.
Here is a piece of working code. I can share the video of UX in action, if needed.
There are two problems with this:
ensure_task_textis rather complex and fragile to maintain.react-beautiful-dndafter some time inserts text node back into DOM, creating duplicates, that need to cleaned.Suggested solution?
Simply allowing to disable the removal of absolutely positioned elements would reduce the complexity and remove both problems outlined above.