Dropdown Menu Not Visible in Modal
See original GitHub issueBrief description
Similar issue to #1064 where dropdowns don’t work in modals.
What package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having.
Dropdown menu is not visible when nested inside of a modal. It displays correctly outside of a modal.
Is this issue related to a specific component?
Modal
What did you expect to happen? What happened instead? What would you like to see changed?
I expected the dropdown menu to be visible inside of the modal
What browser are you working in?
Chrome 78.0.3904.70
What version of the Carbon Design System are you using?
carbon-components 10.7.3
carbon-components-react 7.7.3
What offering/product do you work on? Any pressing ship or release dates we should be aware of?
IBM Cloud Monitoring. This is definitely a blocking issue as the designs I’m following require a dropdown inside a modal dialogue.
Steps to reproduce the issue
Definition of Done
- Dropdown menu is visible and selectable
- It would nice if there was a unit test that had a dropdown in a modal and selected an option from it. But I guess programmatically it wouldn’t be hard to select.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Dropdownlist not display well, how to fix this? - CodeProject
Solution 1. Accept Solution Reject Solution. Use the correct markup for the Bootstrap modal, and add the appropriate trigger to your button.
Read more >Vue Custom dropdown not showing on modal - Stack Overflow
I've set overflow-y: visible main div of modal. but the problem is that it would add a scroll bar to the whole modal...
Read more >Dropdowns - Bootstrap
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown ...
Read more >Styling lightning:combobox drop down to not hide inside ...
Oh, it is normally set to visible. My issue with that is you then have extra space at the bottom of the modal....
Read more >Drop-down button showing modal pop-up instead of drop ...
I think You need to check page layout whether it is set to modal popup option in Page. Click on page properties and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks again @asudoh! I need to learn more about css floats haha
FYI to future readers: Add
overflow:visible
to:bx--modal-content
to make the dropdown menu visiblebx--modal-container
to make the dropdown menu float above the modal, removing the border clipping https://codesandbox.io/s/codesandbox-bgdj5You can do the same for
<div "bx--modal-container">
, too.