From 1fed3ad532b5773e6f70ce2d93087aa66913aea8 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 10 Nov 2022 15:33:39 +0530 Subject: [PATCH] Don't propagate events in the Stop Task button --- ui/media/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index e464effd..b326dee3 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -873,7 +873,8 @@ function createTask(task) { task['progressBar'] = taskEntry.querySelector('.progress-bar') task['stopTask'] = taskEntry.querySelector('.stopTask') - task['stopTask'].addEventListener('click', async function() { + task['stopTask'].addEventListener('click', async function(e) { + e.stopPropagation() if (task['isProcessing']) { task.isProcessing = false task.progressBar.classList.remove("active")