Skip to content

Commit 9eccd50

Browse files
hinaloehiyuki2578
authored andcommitted
make draggingOver state off correctly (mastodon#9797)
* make draggingOver stat off correctly * ignore safari and Edge * Revert "ignore safari and Edge" This reverts commit b9b93ea. * Revert "make draggingOver stat off correctly" This reverts commit f5fd6b9. * clear drag stack when drop
1 parent 54ca242 commit 9eccd50

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • app/javascript/mastodon/features/ui

app/javascript/mastodon/features/ui/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ class UI extends React.PureComponent {
259259
e.preventDefault();
260260

261261
this.setState({ draggingOver: false });
262+
this.dragTargets = [];
262263

263264
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
264265
this.props.dispatch(uploadCompose(e.dataTransfer.files));

0 commit comments

Comments
 (0)