Skip to content

Commit 6026043

Browse files
authored
Merge pull request #6638 from WoltLab/62-attachment-tab-fix
Fix issue that an already open attachment tab was closed when uploading via drag and drop
2 parents 435d515 + eb61211 commit 6026043

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

  • ts/WoltLabSuite/Core/Component/Attachment
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment

ts/WoltLabSuite/Core/Component/Attachment/List.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export function setup(editorId: string): void {
9898
return;
9999
}
100100

101-
getTabMenu(editorId)?.setActiveTab("attachments");
101+
const menu = getTabMenu(editorId);
102+
if (menu !== undefined && menu.activeTabName !== "attachments") {
103+
menu.setActiveTab("attachments");
104+
}
102105
})
103106
.collectMetaData((payload) => {
104107
let context: Context | undefined = undefined;

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)