瀏覽代碼

fix: bug #1413 input '/' when clicking icon to open prompt modal

ShengYan, Zhang 1 年之前
父節點
當前提交
cbb50c14e1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/components/chat.tsx

+ 1 - 0
app/components/chat.tsx

@@ -790,6 +790,7 @@ export function Chat() {
           hitBottom={hitBottom}
           showPromptHints={() => {
             inputRef.current?.focus();
+            setUserInput("/");
             onSearch("");
           }}
         />