Преглед на файлове

fix: #1126 can not select prompt

Yidadaa преди 1 година
родител
ревизия
1aaf4ae5bc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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