From e6425dce320f0a177ccd60cc37fff30cc0116a70 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 5 Sep 2025 17:07:57 +0800 Subject: [PATCH] feat(bulk-manager): enhance bulk mode handling by skipping actions when a modal is open --- static/js/managers/BulkManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/managers/BulkManager.js b/static/js/managers/BulkManager.js index 59714a37..015e2247 100644 --- a/static/js/managers/BulkManager.js +++ b/static/js/managers/BulkManager.js @@ -140,7 +140,6 @@ export class BulkManager { // Only if in bulk mode and there are selected models if (state.bulkMode && state.selectedModels && state.selectedModels.size > 0) { // Check if click is on blank area (not on a model card or excluded elements) - // Also exclude context menu elements to prevent interference this.clearSelection(); this.toggleBulkMode(); // Prevent further handling @@ -150,6 +149,7 @@ export class BulkManager { }, { priority: 70, // Lower priority to let context menu events process first onlyInBulkMode: true, + skipWhenModalOpen: true, targetSelector: '.page-content', excludeSelector: '.model-card, button, input, folder-sidebar, .breadcrumb-item, #path-part, .context-menu, .context-menu *', button: 0 // Left mouse button only