Hide drag & drop area on drop event regardless of success

th-downstream
Eugen Rochko 8 years ago
parent 4ef48bcc42
commit 8c97719fbc

@ -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));
}
},

Loading…
Cancel
Save