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.

OverflowMenu not working inside Modal (v10)

See original GitHub issue

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having. Trying to upgrade to v10. We are using OverflowMenu inside Modal as seen in the screenshot below. (Open in top left corner of picture). The click event is being blocked by something. I compared OverflowMenuComponent inside and outside the modal. Looking at the event listeners it seems like the event is being blocked by something called focusTrap.

Is this issue related to a specific component? Interaction between OverflowMenuItem and Modal

What did you expect to happen? What happened instead? What would you like to see changed? I expect the click event to get to the handler. It does not.

What browser are you working in? Chrome

What version of the Carbon Design System are you using? “carbon-components”: “^10.0.0”, “carbon-components-react”: “^7.0.0”,

What offering/product do you work on? Any pressing ship or release dates we should be aware of? I work on Voice Agent, and we planned on finishing the upgrade to v10 for our August release.

Steps to reproduce the issue

  1. Step one Create a Modal with an OverflowMenu inside it.
  2. Step two Have an OverflowMenuItem item with an onClick handler.
  3. Step three Click on the menu item to see it doesn’t work.

Additional information

  • Screenshots or code model-overflow

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
asudohcommented, Aug 8, 2019

Thanks - Would you try adding focusTrap={false} to <Modal>? Your CodeSandbox seems to be working this way.

0reactions
abbeyhrtcommented, Sep 9, 2019

I’m going to close this since it seems like the issue was addressed, feel free to comment if you feel like it hasn’t been addressed yet!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TinyMCE menus not working inside bootstrap modal
The issue here is not, that the menus aren't working, the issue is that they are appearing below the modal and are thus...
Read more >
Angular powered Bootstrap
Bootstrap widgets for Angular: autocomplete, accordion, alert, carousel, datepicker, dropdown, offcanvas, pagination, popover, progressbar, rating, tabset, ...
Read more >
Modal - Bootstrap
Use Bootstrap's JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
Read more >
react native error message popup
Recently I started working with React Native and got a blank white screen after ... function inside the react-native App Component. load() not...
Read more >
Transactional modal - Carbon Design System
For longer tasks, use a progress modal to give the user a sense of completion and orientation within the focused flow. For complex...
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