From c02f80cec5881a4a03ff5fdd10a54cf3ec6849e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Elfstr=C3=B6m?= Date: Mon, 4 Nov 2024 12:09:51 +0100 Subject: [PATCH] WebUI: Hide context menu when clicking on a table row This fixes a bug where the torrents table header menu could not be closed by clicking on a table row. This also fixes the same bug for other context menus. PR #21731. --- src/webui/www/private/scripts/dynamicTable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index a505d274d..4a3b2c7e6 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -811,7 +811,6 @@ window.qBittorrent.DynamicTable ??= (() => { }); tr.addEventListener("click", function(e) { e.preventDefault(); - e.stopPropagation(); if (e.ctrlKey || e.metaKey) { // CTRL/CMD ⌘ key was pressed