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);
}
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);
});