mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
Patch bug with pasted text not being detected (#2386)
This commit is contained in:
parent
30d2f0914a
commit
300e141736
@ -121,7 +121,11 @@ export default function PromptInput({
|
||||
}
|
||||
|
||||
const pasteText = e.clipboardData.getData("text/plain");
|
||||
if (pasteText) setPromptInput((prev) => prev + pasteText.trim());
|
||||
if (pasteText) {
|
||||
const newPromptInput = promptInput + pasteText.trim();
|
||||
setPromptInput(newPromptInput);
|
||||
onChange({ target: { value: newPromptInput } });
|
||||
}
|
||||
return;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user