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

Improve outside click support #1175

Merged
merged 2 commits into from
Mar 1, 2022
Merged

Improve outside click support #1175

merged 2 commits into from
Mar 1, 2022

Conversation

RobinMalfait
Copy link
Member

We used to use pointerdown, but some older devices with iOS 12 didn't
have support for that. Instead we used mousedown. But now it turns out
that some devices only properly use pointerdown and not the mousedown event.

Instead, we will listen to both, but make sure to only handle the event
once.

Fixes: #1173

We used to use `pointerdown`, but some older devices with iOS 12 didn't
have support for that. Instead we used `mousedown`. But now it turns out
that some devices only properly use `pointerdown` and not the `mousedown` event.

Instead, we will listen to both, but make sure to only handle the event
once.
@vercel
Copy link

vercel bot commented Mar 1, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/playground-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/GR78VjBYEjgzP43xUAzcFifZY4YH
✅ Preview: https://headlessui-react-git-improve-outside-click-ios-tailwindlabs.vercel.app

headlessui-vue – ./packages/playground-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/EADEzs2HNRciwZX5eEMSMBvhaJ8D
✅ Preview: https://headlessui-vue-git-improve-outside-click-ios-tailwindlabs.vercel.app

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] Touch event does not close an open Popover on iOS
1 participant