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

Scrolling with long content doesn't not work on iOS after outside click #3234

Open
CSalih opened this issue May 23, 2024 · 0 comments
Open

Comments

@CSalih
Copy link

CSalih commented May 23, 2024

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.0.3

What browser are you using?

Safari on iPad

Reproduction URL

URL: https://codesandbox.io/p/devbox/jolly-flower-8z97dd

Describe your issue

Scrolling with long content does not work on iOS after an outside click. This issue occurs only on iOS (reproduced on iPad), and specifically when an outside click does not close the dialog, such as when using <Dialog onClose={() => {}}>.

The problem is caused by touchAction: none being set after an outside click. Reviewing the code at handleIOSLocking L86, it seems the issue arises because it incorrectly assumes the dialog should close at that point.

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

No branches or pull requests

1 participant