diff --git a/ui/desktop/src/components/RichChatInput.tsx b/ui/desktop/src/components/RichChatInput.tsx index 68cc20493e..44569bd146 100644 --- a/ui/desktop/src/components/RichChatInput.tsx +++ b/ui/desktop/src/components/RichChatInput.tsx @@ -545,6 +545,13 @@ export const RichChatInput = forwardRef(({ e.preventDefault(); e.stopPropagation(); + // Ensure textarea maintains focus after click + setTimeout(() => { + if (hiddenTextareaRef.current) { + hiddenTextareaRef.current.focus(); + } + }, 0); + if (misspelledData) { const rect = e.currentTarget.getBoundingClientRect(); console.log('🖱️ CLICK: Element rect:', rect);