From cd59ceceef5fdd99883a9da591dc855c68d3358e Mon Sep 17 00:00:00 2001 From: Nicolas Derumigny Date: Thu, 2 Jan 2025 15:30:40 +0100 Subject: [PATCH] Fix #37106 --- build/media_source/com_content/js/form-edit.es6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); });