mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
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
This commit is contained in:
@@ -502,7 +502,7 @@ export function Chat() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (shouldSubmit(e)) {
|
if (shouldSubmit(e) && promptHints.length === 0) {
|
||||||
doSubmit(userInput);
|
doSubmit(userInput);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user