mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:30:34 +00:00
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:
parent
3bb1e34233
commit
c02f80cec5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user