From 389c2fe69ac0d2e727f0273868d94ed24ece2865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Mon, 8 Jun 2026 21:59:06 +0200 Subject: [PATCH] Fixed bug in arrow up --- static/js/sidebar.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/sidebar.mjs b/static/js/sidebar.mjs index 285fd44..da05750 100644 --- a/static/js/sidebar.mjs +++ b/static/js/sidebar.mjs @@ -346,7 +346,8 @@ export class N2Sidebar extends CustomHTMLElement { } if (siblingBefore !== null && siblingExpanded && siblingBefore.hasChildren()) { - _mbus.dispatch("GO_TO_NODE", { nodeUUID: siblingBefore.Children[siblingBefore.Children.length - 1]?.UUID, dontPush: false, dontExpand: true }) + const nodeVisuallyAbove = this.getLastExpandedNode(siblingBefore) + _mbus.dispatch("GO_TO_NODE", { nodeUUID: nodeVisuallyAbove.UUID, dontPush: false, dontExpand: true }) return }