|
|
@ -50,8 +50,9 @@ const UI = React.createClass({ |
|
|
|
handleDrop (e) { |
|
|
|
handleDrop (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
if (e.dataTransfer && e.dataTransfer.files.length === 1) { |
|
|
|
|
|
|
|
this.setState({ draggingOver: false }); |
|
|
|
this.setState({ draggingOver: false }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e.dataTransfer && e.dataTransfer.files.length === 1) { |
|
|
|
this.props.dispatch(uploadCompose(e.dataTransfer.files)); |
|
|
|
this.props.dispatch(uploadCompose(e.dataTransfer.files)); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|