react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Popover not changing position when triggerRef contents change

Open eranimo opened this issue 9 months ago โ€ข 3 comments

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

eranimo avatar May 14 '24 16:05 eranimo