Skip to content

Commit 33f5d5c

Browse files
committed
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
1 parent 6b8c21f commit 33f5d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const CheckpointMenu = ({
8686
</Button>
8787
</PopoverTrigger>
8888
</StandardTooltip>
89-
<PopoverContent align="end" container={portalContainer}>
89+
<PopoverContent align="end" {...(portalContainer && { container: portalContainer })}>
9090
<div className="flex flex-col gap-2">
9191
{!isCurrent && (
9292
<div className="flex flex-col gap-1 group hover:text-foreground">

0 commit comments

Comments
 (0)