Skip to content

Commit

Permalink
fix: pass original reference props
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Dec 2, 2024
1 parent 73b4c3c commit 034ce3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/lab/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function Popover({

return (
<React.Fragment>
{React.cloneElement(child, {ref: anchorRef, ...getReferenceProps()})}
{React.cloneElement(child, {ref: anchorRef, ...getReferenceProps(child.props)})}
<Popup
{...restProps}
ref={setFloatingElement}
Expand Down

0 comments on commit 034ce3d

Please sign in to comment.