diff --git a/frontend/src/lib/lemon-ui/Popover/Popover.tsx b/frontend/src/lib/lemon-ui/Popover/Popover.tsx index 0541bbade9e36..fe42c89c98fa9 100644 --- a/frontend/src/lib/lemon-ui/Popover/Popover.tsx +++ b/frontend/src/lib/lemon-ui/Popover/Popover.tsx @@ -138,7 +138,11 @@ export const Popover = React.forwardRef(function P }) const [floatingElement, setFloatingElement] = useState(null) - const mergedReferenceRef = useMergeRefs([referenceRef, extraReferenceRef || null]) as React.RefCallback + const mergedReferenceRef = useMergeRefs([ + referenceRef, + extraReferenceRef || null, + (children as any)?.ref, + ]) as React.RefCallback const arrowStyle = middlewareData.arrow ? {