uptick / react-keyed-file-browser

Folder based file browser given a flat keyed list of objects, powered by React.
MIT License
305 stars 145 forks source link

Moving files does not seem to work #92

Open dagrel opened 4 years ago

dagrel commented 4 years ago

In the demo you can both move folders and files. However when I tried to implement the module it only worked for moving folders, but not files.

I am running on React 16.8.0. I tried creating a Sandbox where I changed to older and newer React versions, but this did not help either. Any ideas as to why this is not working? Posting the Sandbox that I tried out below. It runs the latest React version. As you can see, moving files does not work.

https://codesandbox.io/s/pensive-mclean-r7mkd?fontsize=14&hidenavigation=1&theme=dark

scaredcat commented 4 years ago

Hi @dagrel ,

It seems you are able to move files as well. The trick is to select them first (indicated with a bold highlight) then move them rather than move the without selecting.

This change has been introduced with 1.7.0 release. If you wish to have the earlier behaviour, for the time being please use 1.6.1 instead.