forked from XiaoMo/ChatGPT-Next-Web
fix: click the prompt button to hide hints when it's already shown
This commit is contained in:
parent
d42622a5c1
commit
ec19b86ade
@ -789,6 +789,12 @@ export function Chat() {
|
||||
scrollToBottom={scrollToBottom}
|
||||
hitBottom={hitBottom}
|
||||
showPromptHints={() => {
|
||||
// Click again to close
|
||||
if (promptHints.length > 0) {
|
||||
setPromptHints([]);
|
||||
return;
|
||||
}
|
||||
|
||||
inputRef.current?.focus();
|
||||
onSearch("");
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user