From 210d8e44a1e6cba4d6d5632c3e4df1badf934b47 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 17 Feb 2025 11:53:28 +1100 Subject: [PATCH] it seems that, somehow, this effect can run before the menu is 'ready', whatever that may mean. this fixes that --- src/features/command/contextMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/command/contextMenu.tsx b/src/features/command/contextMenu.tsx index e677658..454f2e0 100644 --- a/src/features/command/contextMenu.tsx +++ b/src/features/command/contextMenu.tsx @@ -41,7 +41,7 @@ const Menu: Component<{ children: (command: CommandType) => JSX.Element }> = (pr const event = context.event(); const menu = root(); - if (!menu) { + if (!menu || window.getComputedStyle(menu).display === '') { return; }