mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix dialog helper not resolving
This commit is contained in:
parent
41313f66d3
commit
a6df633895
1 changed files with 9 additions and 0 deletions
|
@ -106,6 +106,15 @@ import '../../assets/css/scrollstyles.css';
|
|||
tryRemoveElement(dlg);
|
||||
}
|
||||
}
|
||||
|
||||
//resolve();
|
||||
// if we just called history.back(), then use a timeout to allow the history events to fire first
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
element: dlg,
|
||||
closedByBack: self.closedByBack
|
||||
});
|
||||
}, 1);
|
||||
}
|
||||
|
||||
dlg.addEventListener('close', onDialogClosed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue