fix: #1126 can not select prompt

This commit is contained in:
Yidadaa
2023-05-01 23:39:54 +08:00
parent 6f6dd4b21d
commit 5a35f992eb

View File

@@ -391,7 +391,7 @@ export function Chat() {
const onPromptSelect = (prompt: Prompt) => { const onPromptSelect = (prompt: Prompt) => {
setPromptHints([]); setPromptHints([]);
inputRef.current?.focus(); inputRef.current?.focus();
setUserInput(prompt.content); setTimeout(() => setUserInput(prompt.content), 60);
}; };
// auto grow input // auto grow input