The input field no longer exists in the shadow root
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 21 Aug 2024 07:33:53 +0000 (09:33 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 21 Aug 2024 07:34:10 +0000 (09:34 +0200)
See https://github.com/WoltLab/WCF/commit/bfcc65cb800b85fdede8b0c7cf59b9fc56b7eab0
See https://www.woltlab.com/community/thread/307810-plugin-icon-verschwindet-bei-bearbeitung-eines-plugins-im-store/

ts/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.js

index 42ec8fd86d1ed813f8c0e5380457a2721e759b0e..fef5939cb0a2012b1bed402e9147d4e1dd7c8ead 100644 (file)
@@ -61,7 +61,7 @@ export class FileProcessor {
 
       this.#registerFile(event.detail);
     });
-    this.#fileInput = this.#uploadButton.shadowRoot!.querySelector<HTMLInputElement>('input[type="file"]')!;
+    this.#fileInput = this.#uploadButton.querySelector<HTMLInputElement>('input[type="file"]')!;
 
     this.#container.querySelectorAll<WoltlabCoreFileElement>("woltlab-core-file").forEach((element) => {
       this.#registerFile(element, element.parentElement);
index a66a36cb539147e73260de190a12fc2ca50558ae..2e40933355e196d7778b9f10181915a78354c053 100644 (file)
@@ -36,7 +36,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Language", "WoltLabSui
                 }
                 this.#registerFile(event.detail);
             });
-            this.#fileInput = this.#uploadButton.shadowRoot.querySelector('input[type="file"]');
+            this.#fileInput = this.#uploadButton.querySelector('input[type="file"]');
             this.#container.querySelectorAll("woltlab-core-file").forEach((element) => {
                 this.#registerFile(element, element.parentElement);
             });