mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-25 17:12:58 -05:00
[Glitch] make draggingOver state off correctly
Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc
This commit is contained in:
parent
92830029ca
commit
5684cd090c
@ -182,6 +182,7 @@ export default class UI extends React.Component {
|
||||
e.preventDefault();
|
||||
|
||||
this.setState({ draggingOver: false });
|
||||
this.dragTargets = [];
|
||||
|
||||
if (e.dataTransfer && e.dataTransfer.files.length === 1) {
|
||||
this.props.dispatch(uploadCompose(e.dataTransfer.files));
|
||||
|
Loading…
x
Reference in New Issue
Block a user