From 5774c3de574b8ad24179c541636b1f68772da5d0 Mon Sep 17 00:00:00 2001 From: Patrick Roza Date: Sat, 25 Jul 2026 09:10:19 +0200 Subject: [PATCH] fix(web): keep mobile composer open for image picker --- apps/web/src/components/chat/ChatComposer.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index b4106bfbeb9..0ef7a74ec07 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2938,6 +2938,11 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) variant="ghost" className="shrink-0 px-2 text-muted-foreground/70 hover:text-foreground/80" aria-label="Attach images" + onPointerDown={(event) => { + // Keep the editor focused while iOS opens its native picker. + // Pointer focus would blur and collapse an existing-thread composer. + event.preventDefault(); + }} onClick={() => imageFileInputRef.current?.click()} >