From: Thibaut Girka Date: Wed, 16 Jan 2019 13:50:17 +0000 (+0100) Subject: [Glitch] make draggingOver state off correctly X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=5684cd090caec27729d78c204911348a0cf62cbf;p=mastodon.git [Glitch] make draggingOver state off correctly Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc --- diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index f043f767e..7928dfe6c 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -182,6 +182,7 @@ export default class UI extends React.Component { e.preventDefault(); this.setState({ draggingOver: false }); + this.dragTargets = []; if (e.dataTransfer && e.dataTransfer.files.length === 1) { this.props.dispatch(uploadCompose(e.dataTransfer.files));