react-spectrum
react-spectrum copied to clipboard
Popover not changing position when triggerRef contents change
Provide a general summary of the issue here
When using Popover by itself with triggerRef, if the bounding box of the trigger changes the popover position does not change.
๐ค Expected Behavior?
The popover should automatically reposition to always be placed correctly when the triggerRef changes
๐ฏ Current Behavior
It does not change position.
๐ Possible Solution
There should be a way to manually trigger a reposition. MutationObserver should be used if it's not already.
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/polished-sun-g6c9lh?file=%2Fsrc%2FApp.js%3A31%2C25
Version
Using React-Aria-Components 1.2.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OSX
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response