Skip to content

Commit d1b17d1

Browse files
authored
fix: context menus on flyout (#9116)
1 parent fdffd65 commit d1b17d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/workspace_svg.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,10 +2806,11 @@ export class WorkspaceSvg
28062806
/** See IFocusableTree.onTreeBlur. */
28072807
onTreeBlur(nextTree: IFocusableTree | null): void {
28082808
// If the flyout loses focus, make sure to close it unless focus is being
2809-
// lost to the toolbox.
2809+
// lost to the toolbox or ephemeral focus.
28102810
if (this.isFlyout && this.targetWorkspace) {
28112811
// Only hide the flyout if the flyout's workspace is losing focus and that
2812-
// focus isn't returning to the flyout itself or the toolbox.
2812+
// focus isn't returning to the flyout itself, the toolbox, or ephemeral.
2813+
if (getFocusManager().ephemeralFocusTaken()) return;
28132814
const flyout = this.targetWorkspace.getFlyout();
28142815
const toolbox = this.targetWorkspace.getToolbox();
28152816
if (toolbox && nextTree === toolbox) return;

0 commit comments

Comments
 (0)