From 3e368d9aa4bc91443d139cdde5fc7ce17fe4588d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 28 Feb 2025 09:20:35 -0600 Subject: [PATCH] Dismiss admin menu on cancel --- src/state/AppStateProvider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state/AppStateProvider.tsx b/src/state/AppStateProvider.tsx index d93452c5..3f4cd7af 100644 --- a/src/state/AppStateProvider.tsx +++ b/src/state/AppStateProvider.tsx @@ -95,6 +95,7 @@ export default function AppStateProvider({ uploadInputRef.current.value = ''; uploadInputRef.current.click(); uploadInputRef.current.oninput = onStart ?? null; + uploadInputRef.current.oncancel = onStart ?? null; } }, []); const setUploadState = useCallback((uploadState: Partial) => {