Skip to content

Commit

Permalink
fix: pass menu separator ref (#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
remidej authored Feb 4, 2025
1 parent 091d446 commit e25a380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-terms-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@strapi/design-system': patch
---

fix: pass menu separator ref
4 changes: 2 additions & 2 deletions packages/design-system/src/components/SimpleMenu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ const StyledSeparator = styled(Box)`
}
`;

const MenuSeparator = React.forwardRef<HTMLDivElement, SeparatorProps>((props: SeparatorProps) => (
const MenuSeparator = React.forwardRef<HTMLDivElement, SeparatorProps>((props: SeparatorProps, ref) => (
<DropdownMenu.Separator {...props} asChild>
<StyledSeparator height="1px" shrink={0} background="neutral150" />
<StyledSeparator height="1px" shrink={0} background="neutral150" ref={ref} />
</DropdownMenu.Separator>
));

Expand Down

0 comments on commit e25a380

Please sign in to comment.