Description
Provide a general summary of the issue here
ComboBox popover with triggerRef
that points to a different element than the input, is positioned on top left of the page on initial page load in an SSR app.
🤔 Expected Behavior?
Popover to be positioned correctly on SSR too.
😯 Current Behavior
Popover is positioned on top left of the page on SSR.
💁 Possible Solution
No response
🔦 Context
For our project I need to add an optional icon and an arbitrary slot before the Input
. To achieve this I use the Group
component to wrap the elements, and add a triggerRef
to Popover
, that references the Group
component to position the popover menu correctly.
This works fine on Storybook but when we use the component on Remix or Next.js, on initial load of the page, the popover is aligned to the top left of the page. When we navigate to another page and come back, it works.
🖥️ Steps to Reproduce
- Load the page
- Open ComboBox menu, and the menu is positioned incorrectly
- Go to "About" page
- Go to "Home" page
- Open ComboBox and the menu is positioned correctly.
Version
React Aria Components v1.2.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response