mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-28 08:21:27 -03:00
fix(bulk): restore card selection when virtual scroller recreates cards
This commit is contained in:
@@ -544,6 +544,12 @@ export class MasonryScroller {
|
||||
modelCard.style.minWidth = '0';
|
||||
}
|
||||
|
||||
// Scroll recycling rebuilds cards from scratch, dropping `.selected`
|
||||
// even though the filepath is still selected in state.
|
||||
if (state.bulkMode && modelCard && state.selectedModels.has(modelCard.dataset.filepath)) {
|
||||
modelCard.classList.add('selected');
|
||||
}
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user