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

Mobile - Dropdowns automatically close when scrolling outside of the dropdown element. #3038

Closed
jeroen-fonky opened this issue Mar 15, 2024 · 6 comments · Fixed by #3266
Closed
Assignees

Comments

@jeroen-fonky
Copy link

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

What version of that package are you using?
1.7.17

What browser are you using?
Chrome

Reproduction URL
https://headlessui.com/vue/listbox

Description
On mobile phone, opened dropdowns automatically close when scrolling outside of the dropdown element.
The error 986-51ff325a1976a40c.js:1 [Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted. is thrown.

Steps to reproduce:

  • Open https://headlessui.com/vue/listbox
  • Open the dropdown
  • Open dev tools
  • Use Dimensions: responsive and make the page so small that a scrollbar appears within the scrollbar
  • Click outside of the modal and move down (like scrolling down on your mobile phone)
  • Your dropdown automatically closes, which is annoying
  • There's an error in the console
@peter-neumann-dev
Copy link

I have the same issue with the Popover

@oebiesoft
Copy link

Me too!

@zenodegenkamp
Copy link

Me too !

@nikitas
Copy link

nikitas commented May 30, 2024

Reproducable, @peter-neumann-dev @oebiesoft @zenodegenkamp have you guys found a way to fix it?

@RobinMalfait
Copy link
Collaborator

Hey!

This should be fixed by #3266, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/react@insiders.
  • npm install @headlessui/vue@insiders.

@jeroen-fonky
Copy link
Author

Thanks for your efforts, keep up the good work!

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.

6 participants