react-s3-uploader
Advanced tools
Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "react-s3-uploader", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "React component that renders a file input and automatically uploads to an S3 bucket", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,3 +59,18 @@ "use strict"; | ||
render: function() { | ||
return React.DOM.input(objectAssign({}, this.props, {type: 'file', onChange: this.uploadFile})); | ||
return React.DOM.input(this.getInputProps()); | ||
}, | ||
getInputProps() { | ||
var temporaryProps = objectAssign({}, this.props, {type: 'file', onChange: this.uploadFile}); | ||
var inputProps = {}; | ||
var invalidProps = Object.keys(ReactS3Uploader.propTypes); | ||
for(var key in temporaryProps) { | ||
if(temporaryProps.hasOwnProperty(key) && invalidProps.indexOf(key) === -1) { | ||
inputProps[key] = temporaryProps[key]; | ||
} | ||
} | ||
return inputProps; | ||
} | ||
@@ -62,0 +77,0 @@ |
@@ -177,2 +177,6 @@ react-s3-uploader | ||
##### 3.2.1 | ||
* Avoid react warning by not passing unnecessary props to Dom.input [#75] | ||
##### 3.2.0 | ||
@@ -179,0 +183,0 @@ |
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
20145
316
232