mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 20:32:27 +00:00
fix(ui): resolve race condition in UploadModal by initializing controller early
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
c1d7cc768e
commit
eb56dbb6a2
3 files changed
+12
-1
No files matched your search
@@ -1263,8 +1263,14 @@ export class UploadModal {
|
||||
// --- Modal Control ---
|
||||
|
||||
async open({ triggerElement } = {}) {
|
||||
await this.load();
|
||||
try {
|
||||
await this.load();
|
||||
} catch (error) {
|
||||
devLogger.error("[UploadModal] Failed to load modal template:", error);
|
||||
}
|
||||
|
||||
if (!this.root) return;
|
||||
|
||||
this.root.classList.remove("hidden");
|
||||
this.setGlobalModalState("upload", true);
|
||||
this.isVisible = true;
|
||||
|
||||
Reference in new issue
Block a user