From 5684cd090caec27729d78c204911348a0cf62cbf Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 16 Jan 2019 14:50:17 +0100 Subject: [Glitch] make draggingOver state off correctly Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc --- app/javascript/flavours/glitch/features/ui/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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)); -- cgit