about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-16 14:50:17 +0100
committerThibaut Girka <thib@sitedethib.com>2019-01-16 14:50:17 +0100
commit5684cd090caec27729d78c204911348a0cf62cbf (patch)
treee074e7b778e973b12e754d939cc5e2805eb012d6 /app/javascript/flavours/glitch
parent92830029cac92a60719bd9f9cabc5392d0cdf968 (diff)
[Glitch] make draggingOver state off correctly
Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/features/ui/index.js1
1 files changed, 1 insertions, 0 deletions
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));