Browse Source

make draggingOver state off correctly (#9797)

* make draggingOver stat off correctly

* ignore safari and Edge

* Revert "ignore safari and Edge"

This reverts commit b9b93ea367.

* Revert "make draggingOver stat off correctly"

This reverts commit f5fd6b94dc.

* clear drag stack when drop
pull/4/head
Hinaloe 5 years ago
committed by Eugen Rochko
parent
commit
d6433b3931
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/features/ui/index.js

+ 1
- 0
app/javascript/mastodon/features/ui/index.js View File

@ -259,6 +259,7 @@ class UI extends React.PureComponent {
e.preventDefault();
this.setState({ draggingOver: false });
this.dragTargets = [];
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
this.props.dispatch(uploadCompose(e.dataTransfer.files));

Loading…
Cancel
Save