fix: checkpoint restore button showing empty floating window

- Fix issue where checkpoint restore button shows empty popover content
- When portalContainer is undefined, PopoverContent now renders normally without portal
- Only pass container prop when portalContainer is available
- Resolves issue #8646
This commit is contained in:
Roo Code 2025-10-14 07:12:37 +00:00
parent 6b8c21f873
commit 33f5d5ce8e

View file

@ -86,7 +86,7 @@ export const CheckpointMenu = ({
</Button>
</PopoverTrigger>
</StandardTooltip>
<PopoverContent align="end" container={portalContainer}>
<PopoverContent align="end" {...(portalContainer && { container: portalContainer })}>
<div className="flex flex-col gap-2">
{!isCurrent && (
<div className="flex flex-col gap-1 group hover:text-foreground">