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.
This commit is contained in:
Patrik Elfström 2024-11-04 12:09:51 +01:00 committed by GitHub
parent 3bb1e34233
commit c02f80cec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -811,7 +811,6 @@ window.qBittorrent.DynamicTable ??= (() => {
}); });
tr.addEventListener("click", function(e) { tr.addEventListener("click", function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation();
if (e.ctrlKey || e.metaKey) { if (e.ctrlKey || e.metaKey) {
// CTRL/CMD ⌘ key was pressed // CTRL/CMD ⌘ key was pressed