Incorrect DOM markup for upload buttons
authorAlexander Ebert <ebert@woltlab.com>
Sat, 31 Oct 2020 23:38:36 +0000 (00:38 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 31 Oct 2020 23:38:36 +0000 (00:38 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts

index 708cb30a041446d6c71a7ea1c13c8dd706453071..69140314e9456c5496573a2246412862aca097c6 100644 (file)
@@ -87,7 +87,7 @@ define(["require", "exports", "tslib", "./Ajax/Request", "./Core", "./Dom/Change
             const span = document.createElement("span");
             span.textContent = Language.get("wcf.global.button.upload");
             this._button.appendChild(span);
-            this._buttonContainer.insertAdjacentElement("afterbegin", this._fileUpload);
+            this._button.insertAdjacentElement("afterbegin", this._fileUpload);
             this._insertButton();
             Listener_1.default.trigger();
         }
index 84e39fac4e500daa5e88e174073c880e38ca388a..abd44db076492429aa6b20c138a7029b074c6a42 100644 (file)
@@ -131,7 +131,7 @@ abstract class Upload {
     span.textContent = Language.get("wcf.global.button.upload");
     this._button.appendChild(span);
 
-    this._buttonContainer.insertAdjacentElement("afterbegin", this._fileUpload);
+    this._button.insertAdjacentElement("afterbegin", this._fileUpload);
 
     this._insertButton();