Skip to content

Commit 26eeb50

Browse files
committed
Added comment
1 parent e3315db commit 26eeb50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react/src/components/Popovers/GenericPopover.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export const GenericPopover = (
3535

3636
const dismiss = useDismiss(context, props.useDismissProps);
3737
const hover = useHover(context, { enabled: false, ...props.useHoverProps });
38+
// Also returns `getReferenceProps` but unused as the reference element may
39+
// not even be managed by React, so we may be unable to set them. Seems like
40+
// `refs.setReferences` attaches most of the same listeners anyway, but
41+
// possible both are needed.
3842
const { getFloatingProps } = useInteractions([dismiss, hover]);
3943

4044
const innerHTML = useRef<string>("");

0 commit comments

Comments
 (0)