Explorar el Código

fix: #1126 can not select prompt

Yidadaa hace 1 año
padre
commit
1aaf4ae5bc
Se han modificado 1 ficheros con 1 adiciones y 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