Set `bubbles` to `true` for the custom event `fileProcessorCustomAction`.
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 26 Jun 2024 09:11:15 +0000 (11:11 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 26 Jun 2024 09:11:15 +0000 (11:11 +0200)
ts/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.js

index 14032d25e86d35196f900879ccc7d9d89e12f338..7f0253353cbb880cc17d9e32c988730fab5ba827 100644 (file)
@@ -85,7 +85,12 @@ export class FileProcessor {
         extraButton.innerHTML = button.icon;
       }
       extraButton.addEventListener("click", () => {
-        element.dispatchEvent(new CustomEvent("fileProcessorCustomAction", { detail: button.actionName }));
+        element.dispatchEvent(
+          new CustomEvent("fileProcessorCustomAction", {
+            detail: button.actionName,
+            bubbles: true,
+          }),
+        );
       });
 
       const listItem = document.createElement("li");
index e3d59923fc32ba5c45df7de1d387ca9eda6a7042..756b1a7b802da7a6aa56b89c6a4f2b1a588c0d3e 100644 (file)
@@ -63,7 +63,10 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Language", "WoltLabSui
                     extraButton.innerHTML = button.icon;
                 }
                 extraButton.addEventListener("click", () => {
-                    element.dispatchEvent(new CustomEvent("fileProcessorCustomAction", { detail: button.actionName }));
+                    element.dispatchEvent(new CustomEvent("fileProcessorCustomAction", {
+                        detail: button.actionName,
+                        bubbles: true,
+                    }));
                 });
                 const listItem = document.createElement("li");
                 listItem.append(extraButton);