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 bug when dragging mouse outside #2896

Merged
merged 1 commit into from Nov 12, 2022

Conversation

Keilo75
Copy link
Contributor

@Keilo75 Keilo75 commented Nov 6, 2022

As discussed in #2890 and in the Discord, this PR fixes a bug where the modal would close when you mouse down in the modal but drag the mouse outside before releasing it. I've added a story which shows this working, even when the modal content uses portals.

The fix also doesn't cause a regression in #2669.

@hamitaksln
Copy link

Changes look nice. I hope this issue will be resolved.

@jvdsande
Copy link
Contributor

Ha indeed, I missed this one while skimming PRs earlier.

This implementation indeed covers the case where initial mousedown happens in a Portal 👌

Changes look good for me!

@rtivital rtivital merged commit 17f8aa5 into mantinedev:master Nov 12, 2022
@rtivital
Copy link
Member

Thanks!

@Keilo75 Keilo75 deleted the fix-modal-drag-bug branch February 27, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants