mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
fix: prevent video preview persisting when switching between recipes
This commit is contained in:
@@ -140,6 +140,12 @@ export class ModalManager {
|
||||
this.registerModal('recipeModal', {
|
||||
element: recipeModal,
|
||||
onClose: () => {
|
||||
// Stop any playing video
|
||||
const video = recipeModal.querySelector('video');
|
||||
if (video) {
|
||||
video.pause();
|
||||
video.currentTime = 0;
|
||||
}
|
||||
this.getModal('recipeModal').element.style.display = 'none';
|
||||
document.body.classList.remove('modal-open');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user