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:
parent
091b25b51a
commit
210d8e44a1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ const Menu: Component<{ children: (command: CommandType) => JSX.Element }> = (pr
|
||||||
const event = context.event();
|
const event = context.event();
|
||||||
const menu = root();
|
const menu = root();
|
||||||
|
|
||||||
if (!menu) {
|
if (!menu || window.getComputedStyle(menu).display === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue