Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for folder drag 'n' drop
BREAKING CHANGE Dropzone uses [file-selector](https://github.com/react-dropzone/file-selector) to aggregate files by default. This means that users that previously had to install the lib and use a custom {getDataTransferItems} prop to get folder drop support, don't have to do it anymore. Before: ```js import {fromEvent} from 'file-selector'; <Dropzone getDataTransferItems={fromEvent}> {({getRootProps}) => <div {...getRootProps()} />} </Dropzone> ``` After: ```js <Dropzone> {({getRootProps}) => <div {...getRootProps()} />} </Dropzone> ```
- Loading branch information
1 parent
3655a0d
commit 2fc6e06
Showing
9 changed files
with
41 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.