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: double onClose on mobile dialog outClick #2690

Merged
merged 5 commits into from
Aug 21, 2023

Conversation

DavideFrancescon
Copy link
Contributor

Closes: #2671

Removed click event on mobile that was fired before onTouchEnd causing a the onClose function to fire twice.

@vercel
Copy link

vercel bot commented Aug 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2023 3:43pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2023 3:43pm

@thecrypticace
Copy link
Contributor

@DavideFrancescon Hey, thanks for opening this! Could you enable maintainer access for the PR?

@DavideFrancescon
Copy link
Contributor Author

@thecrypticace Should have invited you! Thanks for the fast response

@thecrypticace
Copy link
Contributor

thecrypticace commented Aug 21, 2023

That works, thanks! For future reference though you don't have to invite people for that. There's a checkbox in the right sidebar at the bottom when you open a PR to enable maintainer access. It looks like this:

Screenshot 2023-08-21 at 11 29 53

Afaik, this ensures the access is only temporary while the PR is open.

@thecrypticace
Copy link
Contributor

Merged. Thanks! This will be in the insiders build until we push a new release out. Probably later this week. There's a few more fixes I want to get in if I can.

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.

Dialog onClose executes twice in mobile
2 participants