You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-14 07:04:24 +02:00
fix(web): prevent drag-n-drop upload overlay from showing when not dragging files (#8082)
This commit is contained in:
@ -6,7 +6,9 @@
|
|||||||
let dragStartTarget: EventTarget | null = null;
|
let dragStartTarget: EventTarget | null = null;
|
||||||
|
|
||||||
const handleDragEnter = (e: DragEvent) => {
|
const handleDragEnter = (e: DragEvent) => {
|
||||||
dragStartTarget = e.target;
|
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
|
||||||
|
dragStartTarget = e.target;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user