Pārlūkot izejas kodu

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

ShengYan, Zhang 1 gadu atpakaļ
vecāks
revīzija
cbb50c14e1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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("");
           }}
         />