mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 13:03:43 +08:00
fix: #1126 can not select prompt
This commit is contained in:
@@ -391,7 +391,7 @@ export function Chat() {
|
|||||||
const onPromptSelect = (prompt: Prompt) => {
|
const onPromptSelect = (prompt: Prompt) => {
|
||||||
setPromptHints([]);
|
setPromptHints([]);
|
||||||
inputRef.current?.focus();
|
inputRef.current?.focus();
|
||||||
setUserInput(prompt.content);
|
setTimeout(() => setUserInput(prompt.content), 60);
|
||||||
};
|
};
|
||||||
|
|
||||||
// auto grow input
|
// auto grow input
|
||||||
|
Reference in New Issue
Block a user