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

Merge pull request #1534 from Quorafind/fix_enter_key_to_select_prompt

Fix: press enter to select prompt when set pressing `enter` key to submit
Yifei Zhang преди 2 години
родител
ревизия
daecd3efa1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -502,7 +502,7 @@ export function Chat() {
       e.preventDefault();
       return;
     }
-    if (shouldSubmit(e)) {
+    if (shouldSubmit(e) && promptHints.length === 0) {
       doSubmit(userInput);
       e.preventDefault();
     }