[Bug]: overflowmenuv2 is not working correctly when inside a modal #13669
Labels
component: overflow-menu
package: @carbon/react
@carbon/react
role: dev 🤖
severity: 3
https://ibm.biz/carbon-severity
type: bug 🐛
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
The text was updated successfully, but these errors were encountered: