From a244b2c8bc7a2993228fd1ed5a20c54084ba69f7 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Wed, 25 Mar 2026 17:27:10 -0700 Subject: [PATCH] focus app window on file drop so modal isn't dismissed by the focus click --- .../components/GlobalFileDropHandler/GlobalFileDropHandler.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/apps/artcraft/app/src/components/GlobalFileDropHandler/GlobalFileDropHandler.tsx b/frontend/apps/artcraft/app/src/components/GlobalFileDropHandler/GlobalFileDropHandler.tsx index 98d61d1677..c818031099 100644 --- a/frontend/apps/artcraft/app/src/components/GlobalFileDropHandler/GlobalFileDropHandler.tsx +++ b/frontend/apps/artcraft/app/src/components/GlobalFileDropHandler/GlobalFileDropHandler.tsx @@ -67,6 +67,7 @@ export function GlobalFileDropHandler() { if (!response.ok) throw new Error(`HTTP ${response.status}`); const blob = await response.blob(); const file = new File([blob], fileName); + await appWindow.setFocus(); setModalType(type); setPendingFile(file); } catch (err) {