Skip to content

Commit

Permalink
remove unnecessary clonning of popperComponent
Browse files Browse the repository at this point in the history
It was previously used to attach additonal props but that's no longer needed.
  • Loading branch information
G07cha committed Nov 27, 2023
1 parent 1456591 commit 267c138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popper_component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class PopperComponent extends React.Component {
data-placement={popperProps.placement}
onKeyDown={popperOnKeyDown}
>
{React.cloneElement(popperComponent)}
{popperComponent}
{showArrow && (
<FloatingArrow
ref={popperProps.arrowRef}
Expand Down

0 comments on commit 267c138

Please sign in to comment.