From: Eugen Date: Thu, 13 Apr 2017 20:21:34 +0000 (+0200) Subject: Fix drag & drop overlay not appearing on firefox (#1721) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c5afe573da39aff73a309d95d3a8ce492a73d3a6;p=mastodon.git Fix drag & drop overlay not appearing on firefox (#1721) --- 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 }); } },