Tags: seanpascoe/react-dropzone
Tags
fix: fix on file select dialog close behaviour (react-dropzone#707) - do not invoke onFileDialogCancel cb if no files were selected, close react-dropzone#652
refactor: remove file preview and close react-dropzone#705 BREAKING CHANGE: File{preview} has been removed to avoid possible memory leaks If you wish to create previews, you can easily achieve this in the `onDrop()` callback: ```js class MyZone extends React.Component { onDrop = files => { this.setState({ files: files.map(file => ({ ...file, preview: URL.createObjectURL(file) })) }); } cleanup = () => { // Revoke data uris when done using the previews const {files} = this.state; for (const file of files) { URL.revokeObjectURL(file.preview); } } render() { return ( <Dropzone onDrop={this.onDrop} /> ); } } ```
fix: fix event propagation and close react-dropzone#686 - persist event in callbacks where the event is passed down the custom callbacks - do not call onDrop, onDragEnter callbacks if event propagation was stopped from a child
fix: fix regression in PRs react-dropzone#673 and react-dropzone#695 - do not use synthetic default imports in typings, close react-dropzone#696 - invoke onDrop when called from input change, close react-dropzone#698 - add more tests to increase coverage
fix: improve onClick and disableClick props (fixes react-dropzone#530) ( react-dropzone#694) - Let onClick callback on container propagate when `{disableClick }` is true - Do not open file dialog if `.preventDefault()` was called on the event
fix: improve drag type detection and fix styling in Safari - cleanup some of the tests - apply different active styling when file type cannot be inferred and close react-dropzone#668 - use DataTransfer{types} for drag data type detection
PreviousNext