Based on https://github.com/AgentME/react-dnd-html5-mixed-backend/,
this local Backend extends react-dnd-html5-backend
to prevent it from taking over "native items" (files, for example).
This is untested, but worked in my application. There is no promise this won't make your computer explode, etc.
// If using react-dnd-html-backend
import HTML5Backend from 'react-dnd-html5-backend';
export default DragDropContext(HTML5Backend)(YourComponent);
// If using local NonNativeHTML5Backend
import NonNativeHTML5Backend from './NonNativeHTML5Backend';
export default DragDropContext(NonNativeHTML5Backend)(YourComponent);
@nickpresta This solves my problem, thanks!
However, it does introduce an issue where if I have react-dnd draggable items, beginning to drag one causes this error:
Cannot call beginDrag while dragging.
Would you happen to know why?