mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -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.type = "checkbox";
|
||||||
checkbox.className = "RenamingCB";
|
checkbox.className = "RenamingCB";
|
||||||
checkbox.addEventListener("click", (e) => {
|
checkbox.addEventListener("click", (e) => {
|
||||||
|
e.stopPropagation();
|
||||||
const targetId = e.target.dataset.id;
|
const targetId = e.target.dataset.id;
|
||||||
const ids = [];
|
const ids = [];
|
||||||
// when holding shift, set all files between the previously selected one and the clicked one
|
// 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.updateGlobalCheckbox();
|
||||||
that.onRowSelectionChange(that.getNode(targetId));
|
that.onRowSelectionChange(that.getNode(targetId));
|
||||||
e.stopPropagation();
|
|
||||||
that.prevCheckboxNum = targetId;
|
that.prevCheckboxNum = targetId;
|
||||||
});
|
});
|
||||||
checkbox.indeterminate = false;
|
checkbox.indeterminate = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue