Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top #7058

Open
AmelloAster opened this issue Sep 20, 2024 · 1 comment

Comments

@AmelloAster
Copy link

Provide a general summary of the issue here

The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top
As in the Prpover Usage case on the website, the behaviour on the UI will be top, even though the placement is set to bottom.

🤔 Expected Behavior?

when i input the placement is bottom, it should return a bottom

😯 Current Behavior

when I input the placement bottom, the useOverlayPosition return top
CleanShot 2024-09-20 at 14 24 45@2x
CleanShot 2024-09-20 at 15 48 03@2x

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://react-spectrum.adobe.com/react-aria/usePopover.html

Version

@react-aria/overlays-3.22.1

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

If other, please specify.

No response

What operating system are you using?

mac

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@AmelloAster AmelloAster changed the title The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top [Bug] The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top Sep 24, 2024
@AmelloAster AmelloAster changed the title [Bug] The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top The useOverlayPosition hook accepts a placement prop bottom, but return the placement is top Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@AmelloAster and others