From 1a032e1db5bf61fe6924506fc363234592530e75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 17:51:02 +0000 Subject: [PATCH] Fix highlightEditorLine to clear all .hovered elements, not just .states.hovered Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --- public/modules/dynamic/editors/states-editor.js | 2 +- public/modules/ui/general.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modules/dynamic/editors/states-editor.js b/public/modules/dynamic/editors/states-editor.js index 21c36912..6d93a919 100644 --- a/public/modules/dynamic/editors/states-editor.js +++ b/public/modules/dynamic/editors/states-editor.js @@ -1290,7 +1290,7 @@ function openStateMergeDialog() { const statesSelector = validStates .map( s => /* html */ ` -
+
diff --git a/public/modules/ui/general.js b/public/modules/ui/general.js index 0610e2a6..1849f8a7 100644 --- a/public/modules/ui/general.js +++ b/public/modules/ui/general.js @@ -247,7 +247,7 @@ function showMapTooltip(point, e, i, g) { } function highlightEditorLine(editor, id, timeout = 10000) { - Array.from(editor.getElementsByClassName("states hovered")).forEach(el => el.classList.remove("hovered")); // clear all hovered + Array.from(editor.getElementsByClassName("hovered")).forEach(el => el.classList.remove("hovered")); // clear all hovered const hovered = Array.from(editor.querySelectorAll("div")).find(el => el.dataset.id == id); if (hovered) hovered.classList.add("hovered"); // add hovered class if (timeout)