Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: share menu portal needed (#813)

Peter Chinman284f68dfd1dc
diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsx
index 8016a2775e..6967cf49d9 100644
--- a/js/app/packages/core/component/TopBar/ShareButton.tsx
+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx
@@ -835,20 +835,25 @@ export function ShareOptions(props: {
left
/>
</DropdownMenu.Trigger>
- <DropdownMenuContent>
- <DropdownMenu.RadioGroup value={currentValue()} onChange={handleChange}>
- <For each={options()}>
- {(option) => (
- <MenuItem
- groupValue={currentValue()}
- value={option.value}
- selectorType="radio"
- text={option.label}
- />
- )}
- </For>
- </DropdownMenu.RadioGroup>
- </DropdownMenuContent>
+ <DropdownMenu.Portal>
+ <DropdownMenuContent>
+ <DropdownMenu.RadioGroup
+ value={currentValue()}
+ onChange={handleChange}
+ >
+ <For each={options()}>
+ {(option) => (
+ <MenuItem
+ groupValue={currentValue()}
+ value={option.value}
+ selectorType="radio"
+ text={option.label}
+ />
+ )}
+ </For>
+ </DropdownMenu.RadioGroup>
+ </DropdownMenuContent>
+ </DropdownMenu.Portal>
</DropdownMenu>
);
}