Skip to content
Snippets Groups Projects
Commit bb7006bd authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Hide drag & drop area on drop event regardless of success

parent 139fc994
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,9 @@ const UI = React.createClass({
handleDrop (e) {
e.preventDefault();
this.setState({ draggingOver: false });
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
this.setState({ draggingOver: false });
this.props.dispatch(uploadCompose(e.dataTransfer.files));
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment