[Glitch] make draggingOver state off correctly
Port e77cb61481
to glitch-soc
This commit is contained in:
parent
426673f17a
commit
8ea1a8e033
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ export default class UI extends React.Component {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
this.setState({ draggingOver: false });
|
this.setState({ draggingOver: false });
|
||||||
|
this.dragTargets = [];
|
||||||
|
|
||||||
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
|
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
|
||||||
this.props.dispatch(uploadCompose(e.dataTransfer.files));
|
this.props.dispatch(uploadCompose(e.dataTransfer.files));
|
||||||
|
|
Loading…
Reference in a new issue