Skip to content

Commit 841c7ad

Browse files
committed
fix: Fix bug that prevented navigation when a flyout workspace is selected.
1 parent 75551a6 commit 841c7ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/navigation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ export class Navigation {
306306

307307
const curNode = flyoutCursor.getCurNode();
308308
const sourceBlock = flyoutCursor.getSourceBlock();
309+
// If the current node is a child of the flyout, nothing needs to be done.
309310
if (
310311
curNode &&
312+
curNode !== flyout.getWorkspace() &&
311313
curNode.getFocusableTree() === flyout.getWorkspace() &&
312314
!this.isFlyoutItemDisposed(curNode, sourceBlock)
313315
) {

0 commit comments

Comments
 (0)