Don't try to upload dropped text
This commit is contained in:
parent
98d7b32036
commit
deb61623b2
1 changed files with 1 additions and 3 deletions
|
@ -85,9 +85,7 @@ export default () => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
if (e.dataTransfer === undefined || e.dataTransfer === null) {
|
if (!e.dataTransfer?.files.length) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
onFileSubmission(e.dataTransfer.files);
|
onFileSubmission(e.dataTransfer.files);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue