From a2bf91e27d7c44b008bddd53345456c319c734ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 22 Mar 2026 12:33:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=9E=AC=EA=B3=A0=EB=AA=A9=EB=A1=9D]?= =?UTF-8?q?=20=ED=94=8C=EB=A1=9C=ED=8C=85=20=EB=A9=94=EB=89=B4=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=20=EC=A6=89=EC=8B=9C=20=EB=8B=AB=ED=9E=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=A0=84=ED=8C=8C?= =?UTF-8?q?=20=EB=B0=A9=EC=A7=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/material/StockStatus/StockStatusList.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/material/StockStatus/StockStatusList.tsx b/src/components/material/StockStatus/StockStatusList.tsx index 0b330c3c..3975f92b 100644 --- a/src/components/material/StockStatus/StockStatusList.tsx +++ b/src/components/material/StockStatus/StockStatusList.tsx @@ -161,6 +161,7 @@ export function StockStatusList() { const [usageLoading, setUsageLoading] = useState(false); const handleRowClick = (item: StockItem, e?: React.MouseEvent) => { + e?.stopPropagation(); if (actionMenu?.item.id === item.id) { setActionMenu(null); return; @@ -174,8 +175,10 @@ export function StockStatusList() { useEffect(() => { if (!actionMenu) return; const close = () => setActionMenu(null); - window.addEventListener('click', close, { once: true }); - return () => window.removeEventListener('click', close); + const timer = setTimeout(() => { + window.addEventListener('click', close, { once: true }); + }, 0); + return () => { clearTimeout(timer); window.removeEventListener('click', close); }; }, [actionMenu]); const handleViewUsage = async (item: StockItem) => {