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