mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-08 06:50:15 -03:00
refactor(download): rename locationStep id to downloadLocationStep
The download modal's step shared the 'locationStep' id with the import
modal, so getElementById('locationStep') could resolve to the wrong
element depending on template include order. The import flow relied on
an injected display:block !important rule to work around it.
Rename the download modal's step id and update all references so each
modal owns a unique step id.
This commit is contained in:
@@ -47,11 +47,8 @@ export class ImportStepManager {
|
||||
targetStep.offsetHeight;
|
||||
}
|
||||
|
||||
// Reset scroll via class: 'locationStep' has a duplicate ID in downloadModal's
|
||||
// template, so getElementById may not return the import modal's step.
|
||||
document.querySelectorAll('.import-step').forEach(step => {
|
||||
step.scrollTop = 0;
|
||||
});
|
||||
// Scroll the active step back to top (steps scroll independently of the modal shell)
|
||||
targetStep.scrollTop = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user