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

Range input (slider) broken in Dialog on iOS #3165

Closed
ErikBooij opened this issue May 2, 2024 · 2 comments · Fixed by #3166
Closed

Range input (slider) broken in Dialog on iOS #3165

ErikBooij opened this issue May 2, 2024 · 2 comments · Fixed by #3166

Comments

@ErikBooij
Copy link

What package within Headless UI are you using?
@headlessui/react

What version of that package are you using?
For example: v1.7.19

What browser are you using?
Safari, iPadOS

Reproduction URL
https://github.com/ErikBooij/headlessui-ios-poc

Describe your issue
The repo linked above shows an example of what happens when you include a slider (<input type="range" />) in a Dialog on iOS/iPadOS (17.4).

Clicking/tapping anywhere on the track moves the thumb there, but you cannot pick up and drag the slider as you normally (outside of a Dialog) would.

It looks almost as if something captures the mousedown, touchstart, or any other relevant event, but I haven't been able to pinpoint it. The same issue does not appear in desktop browsers, I cannot test Android.

@thecrypticace
Copy link
Contributor

Hey, we've merged the fix for this and it'll be in v2.0. We'll get this backported to v1.7.x later today or Monday.

@ErikBooij
Copy link
Author

Awesome, exceptional support! 🙏 Looking forward to it, thanks!

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 a pull request may close this issue.

2 participants