rc-upload
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -0,1 +1,5 @@ | ||
### 1.2.3 2015-07-17 | ||
- support file drop | ||
### 1.2.2 2015-06-25 | ||
@@ -2,0 +6,0 @@ |
@@ -55,2 +55,13 @@ 'use strict'; | ||
_onFileDrop: function _onFileDrop(e) { | ||
if (e.type === 'dragover') { | ||
return e.preventDefault(); | ||
} | ||
var files = e.dataTransfer.files; | ||
this._uploadFiles(files); | ||
e.preventDefault(); | ||
}, | ||
render: function render() { | ||
@@ -61,3 +72,3 @@ var hidden = { display: 'none' }; | ||
'span', | ||
{ onClick: this._onClick }, | ||
{ onClick: this._onClick, onDrop: this._onFileDrop, onDragOver: this._onFileDrop }, | ||
React.createElement('input', { type: 'file', | ||
@@ -64,0 +75,0 @@ ref: 'file', style: hidden, |
{ | ||
"name": "rc-upload", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8445
204