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

Open
jeroen-fonky opened this issue Mar 15, 2024 · 1 comment

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

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

2 participants