logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: c5afe573da39aff73a309d95d3a8ce492a73d3a6
parent: 485310a43c23ecaf2670b8a7c9203110ea4fc7dc
Author: Eugen <eugen@zeonfederated.com>
Date:   Thu, 13 Apr 2017 22:21:34 +0200

Fix drag & drop overlay not appearing on firefox (#1721)


Diffstat:

Mapp/assets/javascripts/components/features/ui/index.jsx2+-
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 @@ -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 }); } },