mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Hide drag & drop area on drop event regardless of success
This commit is contained in:
parent
139fc994e2
commit
bb7006bda1
1 changed files with 2 additions and 1 deletions
|
@ -50,8 +50,9 @@ const UI = React.createClass({
|
|||
handleDrop (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
|
||||
this.setState({ draggingOver: false });
|
||||
|
||||
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
|
||||
this.props.dispatch(uploadCompose(e.dataTransfer.files));
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue