about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorHinaloe <hina@hinaloe.net>2019-01-14 16:44:26 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-01-14 07:44:26 +0000
commitd6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 (patch)
tree5bff1c23332acab85cc8afc5fb41f39871affa34 /app
parent4fb94c758e3bf2e1c0525e9075c2d5dedc14c666 (diff)
make draggingOver state off correctly (#9797)
* make draggingOver stat off correctly

* ignore safari and Edge

* Revert "ignore safari and Edge"

This reverts commit b9b93ea3674877670161207a3f9b3a4f82b68a2d.

* Revert "make draggingOver stat off correctly"

This reverts commit f5fd6b94dc1d4b812e0b910b2b4f35792c3ea3a1.

* clear drag stack when drop
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/ui/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js
index cb88e538a..a59c0a257 100644
--- a/app/javascript/mastodon/features/ui/index.js
+++ b/app/javascript/mastodon/features/ui/index.js
@@ -259,6 +259,7 @@ class UI extends React.PureComponent {
     e.preventDefault();
 
     this.setState({ draggingOver: false });
+    this.dragTargets = [];
 
     if (e.dataTransfer && e.dataTransfer.files.length === 1) {
       this.props.dispatch(uploadCompose(e.dataTransfer.files));