diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx index 3647113b4..81db11e2b 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx @@ -135,6 +135,7 @@ export default function PromptInput({ value={promptInput} className="cursor-text max-h-[50vh] md:max-h-[350px] md:min-h-[40px] mx-2 md:mx-0 py-2 w-full text-[16px] md:text-md text-white bg-transparent placeholder:text-white/60 resize-none active:outline-none focus:outline-none flex-grow" placeholder={"Send a message"} + id="chat-input" /> {buttonDisabled ? ( diff --git a/frontend/src/hooks/useImagePaste.js b/frontend/src/hooks/useImagePaste.js index a25574b29..c98ec5e6a 100644 --- a/frontend/src/hooks/useImagePaste.js +++ b/frontend/src/hooks/useImagePaste.js @@ -12,7 +12,9 @@ export function useImagePaste(onImagePaste) { blob.name || `pasted-image.${blob.type.split("/")[1]}`; const file = new File([blob], fileName, { type: blob.type }); onImagePaste(file); - break; + + // Focus the input after paste + document.getElementById("chat-input")?.focus(); } } };