You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: