mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01:00
focus input after paste
This commit is contained in:
parent
af843a24c6
commit
a44e56dff1
@ -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 ? (
|
||||
<StopGenerationButton />
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user