mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
feat(bulk-manager): enhance bulk mode handling by skipping actions when a modal is open
This commit is contained in:
@@ -140,7 +140,6 @@ export class BulkManager {
|
|||||||
// Only if in bulk mode and there are selected models
|
// Only if in bulk mode and there are selected models
|
||||||
if (state.bulkMode && state.selectedModels && state.selectedModels.size > 0) {
|
if (state.bulkMode && state.selectedModels && state.selectedModels.size > 0) {
|
||||||
// Check if click is on blank area (not on a model card or excluded elements)
|
// 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.clearSelection();
|
||||||
this.toggleBulkMode();
|
this.toggleBulkMode();
|
||||||
// Prevent further handling
|
// Prevent further handling
|
||||||
@@ -150,6 +149,7 @@ export class BulkManager {
|
|||||||
}, {
|
}, {
|
||||||
priority: 70, // Lower priority to let context menu events process first
|
priority: 70, // Lower priority to let context menu events process first
|
||||||
onlyInBulkMode: true,
|
onlyInBulkMode: true,
|
||||||
|
skipWhenModalOpen: true,
|
||||||
targetSelector: '.page-content',
|
targetSelector: '.page-content',
|
||||||
excludeSelector: '.model-card, button, input, folder-sidebar, .breadcrumb-item, #path-part, .context-menu, .context-menu *',
|
excludeSelector: '.model-card, button, input, folder-sidebar, .breadcrumb-item, #path-part, .context-menu, .context-menu *',
|
||||||
button: 0 // Left mouse button only
|
button: 0 // Left mouse button only
|
||||||
|
|||||||
Reference in New Issue
Block a user