mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 13:52:58 +00:00
fix(ui): resolve race condition in UploadModal opening
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
784ffe8260
commit
c1d7cc768e
6 files changed
+2
-47
No files matched your search
@@ -1262,7 +1262,8 @@ export class UploadModal {
|
||||
|
||||
// --- Modal Control ---
|
||||
|
||||
open({ triggerElement } = {}) {
|
||||
async open({ triggerElement } = {}) {
|
||||
await this.load();
|
||||
if (!this.root) return;
|
||||
this.root.classList.remove("hidden");
|
||||
this.setGlobalModalState("upload", true);
|
||||
|
||||
Reference in new issue
Block a user