[Bug]: ComposedModal has a mouse up event that's causing issues #10154
-
Packagecarbon-components BrowserChrome Package versionMost recent DescriptionModal will close when mousing up outside modal Open https://carbon-components-react.netlify.app/?path=/docs/components-composedmodal--default CodeSandbox exampleSteps to reproduceOpen https://carbon-components-react.netlify.app/?path=/docs/components-composedmodal--default Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @clairek20, have you tried setting the |
Beta Was this translation helpful? Give feedback.
Hi @clairek20, have you tried setting the
preventCloseOnClickOutside
prop totrue
? In the playground story you can turn it on and off via the knobs pane. When checked, it prevents the modal from closing when clicking outside of the modal.