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: interact outside pointerup/mouseup issue #994

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

huntabyte
Copy link
Member

@huntabyte huntabyte commented Feb 17, 2024

We're now tracking the target of the pointerdown/mousedown/touchstart events to determine if we should close the modal or not.

Before:
https://github.com/melt-ui/melt-ui/assets/64506580/23f0c9e6-cebb-4112-bfbe-8d580dd76031

After:
https://github.com/melt-ui/melt-ui/assets/64506580/2f3587c4-88c8-46ae-bb9d-fcdd349f2757

Closes: #750

Todo:

  • add tests

Copy link

changeset-bot bot commented Feb 17, 2024

🦋 Changeset detected

Latest commit: f0985e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@melt-ui/svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Feb 17, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
melt-ui ✅ Ready (View Log) Visit Preview f0985e6

@TGlide TGlide merged commit b61ac82 into melt-ui:develop Feb 22, 2024
5 checks passed
This was referenced Feb 22, 2024
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.

🐛Bug: Dialog closes on mouseup outside dialog after mousedown inside dialog
2 participants