mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-20 16:45:10 +00:00
paste trim fix
This commit is contained in:
1 parent
15fe59cc19
commit
97b236d04d
1 file changed
+1
-1
@@ -105,7 +105,7 @@ export const PromptBox = () => {
|
||||
|
||||
const handlePaste = (e: React.ClipboardEvent<HTMLTextAreaElement>) => {
|
||||
e.preventDefault();
|
||||
const pastedText = e.clipboardData.getData("text").trimStart();
|
||||
const pastedText = e.clipboardData.getData("text").trim();
|
||||
setPrompt(pastedText);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user