fix: can not select prompt

This commit is contained in:
Yidadaa 2023-05-01 23:39:54 +08:00
parent 9f3188fe45
commit 1aaf4ae5bc
1 changed files with 1 additions and 1 deletions
app/components

View File

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