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

fix(ComposedModal): align handleMouseDown between Modal, ComposedModal #15934

Merged

Conversation

tw15egan
Copy link
Member

Closes #15857

Fixes an issue preventing selectorsFloatingMenus from being used to prevent modal closures. Now aligned with Modal usage, and only runs if preventCloseOnClickOutside is set to false.

Changelog

Changed

  • Aligned handleMouseDown usage between Modal and ComposedModal

Testing / Reviewing

Ensure there are no regressions to ComposedModal and that portals do not close the ComposedModal if they are passed in to selectorsFloatingMenus

@tw15egan tw15egan requested a review from a team as a code owner March 11, 2024 14:09
Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 1976710
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65ef0f01a626f30008dddfd6
😎 Deploy Preview https://deploy-preview-15934--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit e52f445
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6616d539e7616100081e3e6e
😎 Deploy Preview https://deploy-preview-15934--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks like there is a minor merge conflict

@tw15egan tw15egan added this pull request to the merge queue Apr 10, 2024
Merged via the queue into carbon-design-system:main with commit ad1362c Apr 10, 2024
20 checks passed
@tw15egan tw15egan deleted the composed-modal-floating-menu-fix branch April 10, 2024 19:30
@carbon-automation
Copy link
Contributor

Hey there! v11.55.0 was just released that references this issue/PR.

preetibansalui pushed a commit to tay1orjones/carbon that referenced this pull request Apr 24, 2024
carbon-design-system#15934)

* fix(ComposedModal): align handleMouseDown between Modal, ComposedModal

* test(ComposedModal): update snaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ComposedModal does not use selectorsFloatingMenus on mouse click events like Modal does
3 participants