mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	fix: enter key cannot select prompt when using enter key to submit
This commit is contained in:
		
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -39,4 +39,7 @@ dev
 | 
			
		||||
public/prompts.json
 | 
			
		||||
 | 
			
		||||
.vscode
 | 
			
		||||
.idea
 | 
			
		||||
.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();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user