From 7ca1020ab615e9f8b569d0b5a7fdecb6721b537d Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 6 Jul 2021 23:31:37 +0800
Subject: fix: Fix popup menu bug.

---
 FrontEnd/src/views/common/menu/PopupMenu.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'FrontEnd/src/views/common/menu/PopupMenu.tsx')

diff --git a/FrontEnd/src/views/common/menu/PopupMenu.tsx b/FrontEnd/src/views/common/menu/PopupMenu.tsx
index fce97fcd..2344a6ea 100644
--- a/FrontEnd/src/views/common/menu/PopupMenu.tsx
+++ b/FrontEnd/src/views/common/menu/PopupMenu.tsx
@@ -30,7 +30,7 @@ const PopupMenu: React.FC<PopupMenuProps> = ({
     React.useState<HTMLDivElement | null>(null);
   const { styles, attributes } = usePopper(referenceElement, popperElement);
 
-  useClickOutside(popperElement, () => setShow(false));
+  useClickOutside(popperElement, () => setShow(false), true);
 
   return (
     <>
-- 
cgit v1.2.3

