filemanager
filemanager copied to clipboard
Cannot have two HTML5 backends at the same time.
Hi,
If I have dnd in some parent component and import react-filemanager, I get an error:
Uncaught (in promise) Error: Cannot have two HTML5 backends at the same time.
Is it possible to create two exports of filemanager: with dragDropManager and without?
Related to issue: https://github.com/react-dnd/react-dnd/issues/186
If you want it as soon, as possible, can you make a PR please?
Related to this issue:
https://github.com/OpusCapita/filemanager/pull/222
Hello, the problem is still there, any idea on how i could fix it ?
@Alistorm, I think you can add check for DragDropContextProvider/HTML5Backend
presense in React context here:
https://github.com/OpusCapita/filemanager/blob/1506bed54051788b017a734013fb5054e67f8cc2/packages/client-react/src/client/components/FileManager/FileManager.react.js#L24
And if it already exists, use it. If no, add it in place for FileManager.react.js
.
We use FileManager for several internal projects and don't want to break backward compatibility at current time.
Thx!