about summary refs log tree commit diff
path: root/app/assets/javascripts/components
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-13 22:21:34 +0200
committerGitHub <noreply@github.com>2017-04-13 22:21:34 +0200
commitc5afe573da39aff73a309d95d3a8ce492a73d3a6 (patch)
tree2281d02105efa7cd129cd76002b6bd87ac4e25aa /app/assets/javascripts/components
parent485310a43c23ecaf2670b8a7c9203110ea4fc7dc (diff)
Fix drag & drop overlay not appearing on firefox (#1721)
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r--app/assets/javascripts/components/features/ui/index.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/ui/index.jsx b/app/assets/javascripts/components/features/ui/index.jsx
index 89fb82568..5c7cc6ef4 100644
--- a/app/assets/javascripts/components/features/ui/index.jsx
+++ b/app/assets/javascripts/components/features/ui/index.jsx
@@ -47,7 +47,7 @@ const UI = React.createClass({
       this.dragTargets.push(e.target);
     }
 
-    if (e.dataTransfer && e.dataTransfer.files.length > 0) {
+    if (e.dataTransfer && e.dataTransfer.items.length > 0) {
       this.setState({ draggingOver: true });
     }
   },