mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
fix multiple attribute for fine uploader
This commit is contained in:
parent
f04ab169d6
commit
2f7bbd01b8
@ -12,7 +12,8 @@ var FileDragAndDrop = React.createClass({
|
||||
onDragOver: React.PropTypes.func,
|
||||
onDragEnd: React.PropTypes.func,
|
||||
filesToUpload: React.PropTypes.array,
|
||||
handleDeleteFile: React.PropTypes.func
|
||||
handleDeleteFile: React.PropTypes.func,
|
||||
multiple: React.PropTypes.bool
|
||||
},
|
||||
|
||||
handleDragStart(event) {
|
||||
@ -105,7 +106,7 @@ var FileDragAndDrop = React.createClass({
|
||||
files={this.props.filesToUpload}
|
||||
handleDeleteFile={this.handleDeleteFile}/>
|
||||
<input
|
||||
multiple
|
||||
multiple={this.props.multiple}
|
||||
ref="fileinput"
|
||||
type="file"
|
||||
style={{
|
||||
|
@ -298,7 +298,8 @@ var ReactS3FineUploader = React.createClass({
|
||||
<FileDragAndDrop
|
||||
onDrop={this.handleUploadFile}
|
||||
filesToUpload={this.state.filesToUpload}
|
||||
handleDeleteFile={this.handleDeleteFile}/>
|
||||
handleDeleteFile={this.handleDeleteFile}
|
||||
multiple={this.props.multiple}/>
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,8 @@ let FileUploader = React.createClass( {
|
||||
|
||||
let InputDate = React.createClass({
|
||||
propTypes: {
|
||||
placeholderText: React.PropTypes.string
|
||||
placeholderText: React.PropTypes.string,
|
||||
onChange: React.PropTypes.func
|
||||
},
|
||||
|
||||
getInitialState() {
|
||||
|
Loading…
Reference in New Issue
Block a user