I find that when a div containing text is draggable I can't select the text.
If I remove the DnD stuff then I can select the text.
Is there a way of having both?
I find that when a div containing text is draggable I can't select the text.
If I remove the DnD stuff then I can select the text.
Is there a way of having both?
A key wrinkle in the question seems to be which precise UX design to support.
A state toggle is one way to resolve that issue. Place a checkbox or other toggle control somewhere, either per-item or global. When toggled with drag off and select on, (let's call this the "off" state), then user could select. When toggled drag on and select off (let's call this the "on" state), then user could drag. You could leverage React to enable DnD behavior only in the latter case of "on" state (like even literally don't include the drag-and-drop wrappers when "off").
Another option is some other gesture recognition like long-click/tap, which react-dnd may not support. You've mentioned some other possibilities like double-click and making the text itself not draggable.