WebUI: use correct property for selecting child elements

`firstChild` will select the first `Node` which is often not intended (it should be
`Element` instead).
This commit is contained in:
Chocobo1
2024-11-20 22:38:32 +08:00
parent 72e033db79
commit f34787e6ba
5 changed files with 26 additions and 26 deletions

View File

@@ -132,7 +132,7 @@ window.qBittorrent.PropTrackers ??= (() => {
},
EditTracker: (element, ref) => {
// only allow editing of one row
element.firstChild.click();
element.firstElementChild.click();
editTrackerFN(element);
},
RemoveTracker: (element, ref) => {