question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdown Menu Not Visible in Modal

See original GitHub issue

Brief 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

  1. Check out https://codesandbox.io/s/codesandbox-cnn1z

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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
PatrickDuncancommented, Nov 15, 2019

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 visible bx--modal-container to make the dropdown menu float above the modal, removing the border clipping https://codesandbox.io/s/codesandbox-bgdj5

2reactions
asudohcommented, Nov 15, 2019

You can do the same for <div "bx--modal-container">, too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found