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();
|
||||
|
||||
setVisible(false);
|
||||
if (e.dataTransfer === undefined || e.dataTransfer === null) {
|
||||
return;
|
||||
}
|
||||
if (!e.dataTransfer?.files.length) return;
|
||||
|
||||
onFileSubmission(e.dataTransfer.files);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue