mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 22:03:27 -07:00
Move stopPropagation call to top of function
Based on PR feedback.
This commit is contained in:
parent
be7cfeedda
commit
291d7ecf72
1 changed files with 1 additions and 1 deletions
|
@ -2355,6 +2355,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
checkbox.type = "checkbox";
|
||||
checkbox.className = "RenamingCB";
|
||||
checkbox.addEventListener("click", (e) => {
|
||||
e.stopPropagation();
|
||||
const targetId = e.target.dataset.id;
|
||||
const ids = [];
|
||||
// when holding shift, set all files between the previously selected one and the clicked one
|
||||
|
@ -2388,7 +2389,6 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
}
|
||||
that.updateGlobalCheckbox();
|
||||
that.onRowSelectionChange(that.getNode(targetId));
|
||||
e.stopPropagation();
|
||||
that.prevCheckboxNum = targetId;
|
||||
});
|
||||
checkbox.indeterminate = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue