[Glitch] make draggingOver state off correctly

Port d6433b3931 to glitch-soc
pull/887/head
Thibaut Girka 2019-01-16 14:50:17 +01:00
parent 92830029ca
commit 5684cd090c
1 changed files with 1 additions and 0 deletions

View File

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