const actionSelector = ".jsObjectAction[data-object-action]";
function executeAction(event: Event): void {
+ event.preventDefault();
+
const actionElement = event.currentTarget as HTMLElement;
const objectAction = actionElement.dataset.objectAction!;
const objectSelector = ".jsObjectActionObject[data-object-id]";
const actionSelector = ".jsObjectAction[data-object-action]";
function executeAction(event) {
+ event.preventDefault();
const actionElement = event.currentTarget;
const objectAction = actionElement.dataset.objectAction;
// To support additional actions added by plugins, action elements can override the default object