forked from XiaoMo/ChatGPT-Next-Web
fix: enter key cannot select prompt when using enter key to submit
This commit is contained in:
parent
5ba0aef799
commit
cf775e3487
3
.gitignore
vendored
3
.gitignore
vendored
@ -40,3 +40,6 @@ public/prompts.json
|
||||
|
||||
.vscode
|
||||
.idea
|
||||
|
||||
# Other Package Manager
|
||||
pnpm-lock.yaml
|
@ -502,7 +502,7 @@ export function Chat() {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (shouldSubmit(e)) {
|
||||
if (shouldSubmit(e) && promptHints.length === 0) {
|
||||
doSubmit(userInput);
|
||||
e.preventDefault();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user