Explorar o código

fix: #1126 can not select prompt

Yidadaa %!s(int64=2) %!d(string=hai) anos
pai
achega
1aaf4ae5bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -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