Skip to content

Commit 52cd210

Browse files
committed
fix: Fix timing issue with navigating into bubbles.
1 parent 376bf6b commit 52cd210

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/actions/enter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ export class EnterAction {
165165
// opening a bubble of some sort. We then need to wait for the bubble to
166166
// appear before attempting to navigate into it.
167167
curNode.onClick();
168-
if (hasBubble(curNode) && curNode.bubbleIsVisible()) {
169-
renderManagement.finishQueuedRenders().then(() => {
168+
renderManagement.finishQueuedRenders().then(() => {
169+
if (hasBubble(curNode) && curNode.bubbleIsVisible()) {
170170
cursor?.in();
171-
});
172-
}
171+
}
172+
});
173173
return true;
174174
} else if (curNode instanceof comments.CommentBarButton) {
175175
curNode.performAction();

0 commit comments

Comments
 (0)