Skip to content

Commit

Permalink
fix: use relative position on toolbar popover items (#774)
Browse files Browse the repository at this point in the history
Blueprint's popover targetProps prop is ignored when rendering the target with `renderTarget`. Must use `children` prop instead.

Closes: #773
  • Loading branch information
stropitek authored Oct 16, 2024
1 parent bc12268 commit 761eb4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,10 @@ Toolbar.PopoverItem = function ToolbarPopoverItem(
height: 'fit-content',
},
}}
renderTarget={() => <Toolbar.Item isPopover {...itemProps} />}
{...other}
/>
>
<Toolbar.Item isPopover {...itemProps} />
</Popover>
);
};

Expand Down

0 comments on commit 761eb4b

Please sign in to comment.