Browse Source

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

closed-social-v3
Eugen 7 years ago
committed by GitHub
parent
commit
c5afe573da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/assets/javascripts/components/features/ui/index.jsx

+ 1
- 1
app/assets/javascripts/components/features/ui/index.jsx View File

@ -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 });
}
},

Loading…
Cancel
Save