-
Notifications
You must be signed in to change notification settings - Fork 601
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
fix: Dropdown list for Select component is clipped when it exceeds the bounds of the parent component #5363
Comments
@EisenbergEffect I'm going to mark this as a feature. I'll add a comment below elaborating more. |
Technically a dupe of #4791. This comment explains a bit about the problem and the long term solution: #4791 (comment) Regarding why select doesn't break out of it's container by default, currently For the immediate timeline, you may be able to use a mix of CSS positioning for the listbox |
Thanks for the reply @chrisdholt. What I have done currently is to limit the height of the listbox part by setting the Once again thanks for the help, I didnt realize select was this complicated 😥 |
No worries - we’re working to help fix it in the platform! I think we’ll see if we can pri this without a breaking change as well. Let me see what we can plan for and we’ll work to enhance this for now either way! |
We're going to get started on #4971 so I'm going to close this as a dupe of that bug. |
🐛 Bug Report
When the Select component is used within another component, the dropdown listbox gets clipped if it exceed the bounds of the parent component (see image below).
💻 Repro or Code Sample
🤔 Expected Behavior
Drop down should not be cropped
😯 Current Behavior
Dropdown exceeding the bounds of the parent component is clipped
💁 Possible Solution
Ideally the dropdown should be able to show, even if the parent component isn't tall enough.
Alternatively, exposing a
size
ormax-height
property would be helpful🔦 Context
This issue means we cant use the Fast Select component in our form. Which requires us to use a different select component. This means we have to create and maintain styling and theming for two separate component libraries, which is not ideal
🌍 Your Environment
The text was updated successfully, but these errors were encountered: