[RAC] Select closes immediately on Firefox when scrolled and body has overflow: hidden
#7556
Labels
bug
Something isn't working
overflow: hidden
#7556
Provide a general summary of the issue here
When these three conditions are met:
body
tag hasoverflow: hidden
clicking or interacting with the select with the keyboard to open it will result in the Select opening and immediately closing. Judging on which callbacks get called, it gains focus but does not lose it.
🤔 Expected Behavior?
The Select stays open
😯 Current Behavior
The Select immediately closes
💁 Possible Solution
The workaround I'll be using will be to remove
overflow: hidden
from thebody
tag🔦 Context
No response
🖥️ Steps to Reproduce
Here is a CodeSandbox that shows the behavior. To reproduce, open the link with Firefox (I used version 133), scroll down a bit and then try to open the select.
You can also reproduce the issue on the Storybook by manually adding
overflow: hidden
to thebody
inside the iframe for the component.Here is a video showing the example in action:
Registrazione.schermo.2024-12-30.alle.18.18.33.mov
Version
react-aria-components 1.5.0, no difference on 1.4.1
What browsers are you seeing the problem on?
Firefox
If other, please specify.
No response
What operating system are you using?
MacOS 15.1
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: