From 81fdd416e082957cb196cf09a8ffb89a882f249a Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 14 Jan 2025 19:56:02 -0500 Subject: [PATCH] use window instead of document --- invokeai/frontend/web/src/features/dnd/FullscreenDropzone.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/dnd/FullscreenDropzone.tsx b/invokeai/frontend/web/src/features/dnd/FullscreenDropzone.tsx index 30c3edf3d37..f77c268dfa2 100644 --- a/invokeai/frontend/web/src/features/dnd/FullscreenDropzone.tsx +++ b/invokeai/frontend/web/src/features/dnd/FullscreenDropzone.tsx @@ -146,7 +146,7 @@ export const FullscreenDropzone = memo(() => { useEffect(() => { const controller = new AbortController(); - document.addEventListener( + window.addEventListener( 'paste', (e) => { if (!e.clipboardData?.files) {