uptick / react-keyed-file-browser

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

Issue 92 bug fix #100

Closed spennythug closed 4 years ago

spennythug commented 4 years ago

This fixes the issue for me.

I also spent some time trying to get the drag preview to represent all selected files when dragging more than one file, however, that looked like it would be more trouble than it was worth based on how react-dnd/HTML5 drag and drop work.

If you have any issue/concerns with this fix, let me know and I'll be happy to address them.

jlo-1 commented 4 years ago

Actually noticed this fixed another bug where if you had a file selected but dragged another without selecting first, it would move the wrong file. Happy to merge after addressing the linting comment.

Thanks for contributing!

spennythug commented 4 years ago

Haha awesome! You're welcome. It's a great package. I'm happy I can give back