diff --git a/build/media_source/com_content/js/form-edit.es6.js b/build/media_source/com_content/js/form-edit.es6.js index ca2ff966b2aa2..bb5c9828280fe 100644 --- a/build/media_source/com_content/js/form-edit.es6.js +++ b/build/media_source/com_content/js/form-edit.es6.js @@ -25,7 +25,7 @@ document.querySelectorAll(`[${buttonDataSelector}]`).forEach((button) => { button.addEventListener('click', (e) => { e.preventDefault(); - const task = e.target.getAttribute(buttonDataSelector); + const task = button.getAttribute(buttonDataSelector); submitTask(task); }); });