Fixed bug in arrow up

This commit is contained in:
Magnus Åhall 2026-06-08 21:59:06 +02:00
parent 2921613d97
commit 389c2fe69a

View file

@ -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
}