From 4f059aabc07c149c2654a01c4361c200f8885a4a Mon Sep 17 00:00:00 2001 From: Patrick Roza Date: Sat, 25 Jul 2026 08:40:12 +0200 Subject: [PATCH] fix(web): keep iOS picker mounted while composer collapses --- apps/web/src/components/chat/ChatComposer.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 35f324651ca..b4106bfbeb9 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2409,6 +2409,17 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) className="mx-auto w-full min-w-0 max-w-3xl" data-chat-composer-form="true" > + {/* Keep this above the collapsed/expanded mobile branches. Opening the + native iOS picker blurs and collapses the composer; remounting the + input before `change` arrives discards the selected files. */} +
)} - {/* Keep this outside the responsive footer branches. iOS can resize the - viewport while its native picker is open; remounting the input then - discards the pending change event. */} -