Replies: 1 comment
-
I've found the source of my issue where the popover appears at the wrong location on the screen. I am passing the PopoverTrigger component a Conditional buttons:
Wrapping div:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the correct way to create a ref for a popover div for usePopover in the latest version of react-aria? Some examples create the ref only inside the Popover component while some pass a popoverRef prop to the Popover component and others create the Popover component with forwardRef. How do I know when a Popover needs a ref passed from a parent component or when it can use an internally-created one?
I'm having a strange issue where opening the popover causes it to actually appear somewhere else on the page and not near the trigger - not sure if its related to the ref or not but the question remains :)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions