From 437313b7ff1af55d6701d74358e6c659f839928a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Mon, 16 Mar 2026 16:31:54 +0100 Subject: [PATCH] ux: focus input after reply selection --- src/components/ChatViewer.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ChatViewer.tsx b/src/components/ChatViewer.tsx index 4785403..baa7190 100644 --- a/src/components/ChatViewer.tsx +++ b/src/components/ChatViewer.tsx @@ -799,8 +799,10 @@ export function ChatViewer({ // Handle reply button click const handleReply = useCallback((messageId: string) => { setReplyTo(messageId); - // Focus the editor so user can start typing immediately - editorRef.current?.focus(); + // Focus the editor after context menu closes (next frame) + requestAnimationFrame(() => { + editorRef.current?.focus(); + }); }, []); // Handle scroll to message (when clicking on reply preview)