diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-01-16 14:50:17 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-01-16 14:50:17 +0100 |
commit | 5684cd090caec27729d78c204911348a0cf62cbf (patch) | |
tree | e074e7b778e973b12e754d939cc5e2805eb012d6 /app | |
parent | 92830029cac92a60719bd9f9cabc5392d0cdf968 (diff) |
[Glitch] make draggingOver state off correctly
Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/index.js | 1 |
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)); |