Commit 234569f4 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Georg Ringer
Browse files

[BUGFIX] Late bind drag uploader

If TCA with a file upload is used within IRRE (e.g. as done by
EXT:news), creating a new record or opening an existing record now sets
up the drag uploader.

As the DragUploader module is loaded independently from the FormEngine
main module, loading order may vary, rendering an event-based solution
unstable. To solve this issue without any major refactorings, a
MutationObserver is installed by the DragUploader module.

Resolves: #97676
Releases: main, 11.5
Change-Id: I36a3922999842f4d0bddfc7e4b148ec39880d9df

Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
parent 78d81a90
......@@ -853,6 +853,12 @@ class DragUploader {
$(() => {
// TODO: Refactor the FormEngine integration of the uploader to instance new uploaders via event handlers
const observer = new MutationObserver((): void => {
observer.observe(document, {childList: true, subtree: true});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment