mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): prevent drag-n-drop upload overlay from showing when not dragging files (#8082)
This commit is contained in:
parent
7395b03b1f
commit
f908bd4a64
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue