From c5afe573da39aff73a309d95d3a8ce492a73d3a6 Mon Sep 17 00:00:00 2001 From: Eugen Date: Thu, 13 Apr 2017 22:21:34 +0200 Subject: [PATCH] Fix drag & drop overlay not appearing on firefox (#1721) --- app/assets/javascripts/components/features/ui/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/features/ui/index.jsx b/app/assets/javascripts/components/features/ui/index.jsx index 89fb82568f..5c7cc6ef4e 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 }); } },