Explorar o código

Merge pull request #902 from ClarenceYk/for_test

Update app/components/chat.tsx
Yifei Zhang %!s(int64=2) %!d(string=hai) anos
pai
achega
e68f17b463
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/components/chat.tsx

+ 1 - 0
app/components/chat.tsx

@@ -708,6 +708,7 @@ export function Chat(props: {
         className={styles["chat-body"]}
         ref={scrollRef}
         onScroll={(e) => onChatBodyScroll(e.currentTarget)}
+        onMouseDown={() => inputRef.current?.blur()}
         onWheel={(e) => setAutoScroll(hitBottom && e.deltaY > 0)}
         onTouchStart={() => {
           inputRef.current?.blur();