From 6c5f3aac85e80bb442f9f2579d082fa42b7eddbb Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 4 Oct 2025 11:07:55 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E4=BF=AE=E6=AD=A3=E7=94=B1=E4=BA=8E=20Me?= =?UTF-8?q?nu=20=E5=85=B3=E9=97=AD=E6=B2=A1=E6=9C=89=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AF=BC=E8=87=B4=E7=9A=84=E5=BC=80=E5=85=B3?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/Message.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/ui/chat/Message.tsx b/client/ui/chat/Message.tsx index 79b531c..dd7a2e7 100644 --- a/client/ui/chat/Message.tsx +++ b/client/ui/chat/Message.tsx @@ -36,6 +36,9 @@ export default function Message({ userId, rawData, renderHTML, message, ...props useEventListener(messageJsonDialogRef, 'click', (e) => { e.stopPropagation() }) + useEventListener(dropDownRef, 'closed', (e) => { + setDropDownOpen(false) + }) const [isDropDownOpen, setDropDownOpen] = React.useState(false)