Skip to content
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

[Bug]: overflowmenuv2 is not working correctly when inside a modal #13669

Closed
2 tasks done
tkolanko opened this issue Apr 26, 2023 · 2 comments
Closed
2 tasks done

[Bug]: overflowmenuv2 is not working correctly when inside a modal #13669

tkolanko opened this issue Apr 26, 2023 · 2 comments

Comments

@tkolanko
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.27.0

React version

18.2.0

Description

When unstable_OverflowMenuV2 is added inside a modal you cannot dismiss the overflowmenu by clicking off of it

Note: in this example I am using a modal but in my app this is happening from a tearsheet component which uses the carbon modal classes

Reproduction/example

https://codesandbox.io/s/fancy-rgb-8bwkwl?file=/index.js:90-113

Steps to reproduce

Open the code sandbox
Click launch modal
Click the Modal heading text
The menu does not close

If you close the modal and click the overflow menu that is outside of the modal then clicking off the menu causes it to close

Suggested Severity

None

Application/PAL

No response

Code of Conduct

@andreancardona
Copy link
Contributor

@tkolanko thank you for opening this issue!

@2nikhiltom
Copy link
Contributor

This bug is closed as part of #15889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants