This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Description
Expected behavior
Text inside draggable elements should be selectable for copy without interfering with drag functionality.
Actual behavior
Text within draggable elements is not selectable because the library captures mouse events for dragging, preventing text selection.
Steps to reproduce
- Create a draggable element using
Draggable from react-beautiful-dnd.
- Add a text element inside the draggable element.
- Attempt to select the text using the mouse.
- Notice that the text cannot be selected because the drag event is triggered.
Suggested solution?
Add a prop like allowTextSelection or provide a built-in way to allow text selection within draggable elements without needing to manually stop propagation.
Current workaround:
<Draggable draggableId="item-1" index={0}>
{(provided) => (
<div ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps}>
<span onMouseDown={(e) => e.stopPropagation()}>Selectable Text</span>
</div>
)}
</Draggable>