Browse Source

fix: #1126 can not select prompt

Yidadaa 1 năm trước cách đây
mục cha
commit
1aaf4ae5bc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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