From 11d535f4e363960a3f28a3b1d071a7f71a38d4b3 Mon Sep 17 00:00:00 2001 From: chan Date: Wed, 20 May 2026 13:28:03 +0900 Subject: [PATCH] fix(adminfront): prevent bulk import modal from unmounting when dropdown closes Lifted the modal state out of the DropdownMenuContent to ensure the dialog does not unmount immediately when the dropdown item is clicked. --- .../src/features/users/UserListPage.tsx | 21 +++++++++++++++---- .../users/components/UserBulkUploadModal.tsx | 17 +++++++++++---- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/adminfront/src/features/users/UserListPage.tsx b/adminfront/src/features/users/UserListPage.tsx index 7e30b90c..b7aaad10 100644 --- a/adminfront/src/features/users/UserListPage.tsx +++ b/adminfront/src/features/users/UserListPage.tsx @@ -146,6 +146,7 @@ function UserListPage() { React.useState(""); const [sortConfig, setSortConfig] = React.useState | null>(null); + const [bulkUploadOpen, setBulkUploadOpen] = React.useState(false); const limit = 1000; const offset = (page - 1) * limit; @@ -513,10 +514,16 @@ function UserListPage() { {t("ui.admin.users.csv_template", "템플릿 다운로드")} - query.refetch()} - /> + { + e.preventDefault(); + setBulkUploadOpen(true); + }} + className="cursor-pointer" + > + + {t("ui.admin.users.list.bulk_import", "일괄 등록 (CSV)")} + handleExport(false)} @@ -538,6 +545,12 @@ function UserListPage() { + query.refetch()} + />