Skip to content

Commit

Permalink
fix(web): prevent drag-n-drop upload overlay from showing when not dr…
Browse files Browse the repository at this point in the history
…agging files (#8082)
  • Loading branch information
Ethan13310 committed Mar 20, 2024
1 parent 7395b03 commit f908bd4
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -6,7 +6,9 @@
let dragStartTarget: EventTarget | null = null;
const handleDragEnter = (e: DragEvent) => {
dragStartTarget = e.target;
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
dragStartTarget = e.target;
}
};
</script>

Expand Down

0 comments on commit f908bd4

Please sign in to comment.