Tags: zerbfra/react-dropzone
Tags
fix(490): Put build dependencies to devDependencies (react-dropzone#491) lint / build dependencies incorrectly marked as `dependencies` closes react-dropzone#490
fix: Dragging multiple files when multiple is false doesn't apply rej… …ectStyle (react-dropzone#489) Closes react-dropzone#488
feat: Add disable prop (react-dropzone#473) * Add `disable` prop * Add support for disabled styles and classnames
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
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.
fix: Prevent onClick event being called twice on input element (react… …-dropzone#437) Closes react-dropzone#252
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.
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
feat: Add styleguide (react-dropzone#313) Add styleguide and examples for different use cases
PreviousNext