Skip to content

Tags: zerbfra/react-dropzone

Tags

v4.1.2

Toggle v4.1.2's commit message
fix(490): Put build dependencies to devDependencies (react-dropzone#491)

lint / build dependencies incorrectly marked as `dependencies`

closes react-dropzone#490

v4.1.1

Toggle v4.1.1's commit message
fix: Dragging multiple files when multiple is false doesn't apply rej…

…ectStyle (react-dropzone#489)

Closes react-dropzone#488

v4.1.0

Toggle v4.1.0's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
feat: Add disable prop (react-dropzone#473)

* Add `disable` prop
* Add support for disabled styles and classnames

v4.0.1

Toggle v4.0.1's commit message
fix: Set autocomplete="off" on input to remove SecurityError in Firef…

…ox (react-dropzone#476)

Firefox throws a SecurityError if user agent tries to set the input element's value programmatically. To prevent this, `autocomplete="off"` is added to the input attributes.

Fixes react-dropzone#475

v4.0.0

Toggle v4.0.0's commit message
fix: Always show an active drag state during the drag (react-dropzone…

…#467)

Currently isDragActive is true only if all files are going to be accepted.
This has several implications:

1. This doesn't work in Safari since DataTransfer is empty until the drop event
1. The active state should be applyed based on user interaction independently from validation

Closes react-dropzone#440
Fixes react-dropzone#461

BREAKING CHANGE: isDragAccept acts like isDragActive before. isDragActive is true during the drag.

v3.13.4

Toggle v3.13.4's commit message
fix: Add React 16 in peer dependencies (react-dropzone#463)

v3.13.3

Toggle v3.13.3's commit message
fix: Prevent onClick event being called twice on input element (react…

…-dropzone#437)

Closes react-dropzone#252

v3.13.2

Toggle v3.13.2's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
fix: Handle changes to the `accept` attribute during the drag (react-…

…dropzone#430)

When changing the `accept` prop for the component mid-drag, the component did not reflect the change until you happened to enter/leave another element. This PR updates the `isDragActive` state at the timing of the prop change, using `componentWillReceiveProps`, so the state will be updated right away.

v3.13.1

Toggle v3.13.1's commit message
fix: Show rejected style when dragging multiple files when `multiple=…

…=false` (react-dropzone#410)

ATM setting `multiple` to `false` and dragging multiple files into dropzone will display "accepted" styles although only the first file will be accepted and the rest will be skipped.

Changes:

- `onDrop` will be called with first file as `acceptedFiles` argument and the rest of files as `rejected`. 
- To align the implementation with `accept` prop it will also display `rejected` styles in this case.

Closes react-dropzone#409

v3.13.0

Toggle v3.13.0's commit message
feat: Add styleguide (react-dropzone#313)

Add styleguide and examples for different use cases