it seems that, somehow, this effect can run before the menu is 'ready', whatever that may mean. this fixes that

This commit is contained in:
Chris Kruining 2025-02-17 11:53:28 +11:00
parent 091b25b51a
commit 210d8e44a1
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

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