Skip to content

Commit f5fd6b9

Browse files
committed
make draggingOver stat off correctly
1 parent effb71c commit f5fd6b9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • app/javascript/mastodon/features/ui

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ class UI extends React.PureComponent {
269269
e.preventDefault();
270270
e.stopPropagation();
271271

272+
if (e.relatedTarget === null) {
273+
this.setState({ draggingOver: false });
274+
return;
275+
}
276+
272277
this.dragTargets = this.dragTargets.filter(el => el !== e.target && this.node.contains(el));
273278

274279
if (this.dragTargets.length > 0) {

0 commit comments

Comments
 (0)