1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(web): prevent drag-n-drop upload overlay from showing when not dragging files (#8082)

This commit is contained in:
Ethan Margaillan 2024-03-20 05:28:13 +01:00 committed by GitHub
parent 7395b03b1f
commit f908bd4a64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,9 @@
let dragStartTarget: EventTarget | null = null;
const handleDragEnter = (e: DragEvent) => {
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
dragStartTarget = e.target;
}
};
</script>