mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix: incorrect locating after sorting
This commit is contained in:
1 parent
2c2368a22c
commit
98db91bd2f
1 file changed
+11
-2
+11
-2
@@ -899,8 +899,17 @@ export default {
|
||||
// solid
|
||||
tabIndex = 2;
|
||||
}
|
||||
nodes = nodes[tabIndex].querySelectorAll("tbody tr");
|
||||
const node = nodes[which.id - 1];
|
||||
nodes = nodes[tabIndex].querySelectorAll("table > tbody > tr");
|
||||
const node = Array.from(nodes).find(
|
||||
node =>
|
||||
parseInt(
|
||||
node.querySelector('td[data-label="ID"]')?.textContent
|
||||
) === which.id
|
||||
);
|
||||
if (!node) {
|
||||
console.warn("node not found");
|
||||
return;
|
||||
}
|
||||
node.scrollIntoView({ block: "end", inline: "center" });
|
||||
let highlightClass = "highlight-row-connected";
|
||||
if (that.runningState.running !== that.$t("common.isRunning")) {
|
||||
|
||||
Reference in new issue
Block a user