fix: #1126 can not select prompt

This commit is contained in:
Yidadaa 2023-05-01 23:39:54 +08:00
parent 9f3188fe45
commit 1aaf4ae5bc

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