tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
https://headlessui.com
MIT License
25.81k stars 1.07k forks source link

Fix issues with scrolling in a virtual combobox #3163

Closed thecrypticace closed 5 months ago

thecrypticace commented 5 months ago
  1. If you open a combobox, select an option with the mouse (which closes it), and then reopen it does not scroll to the active option. This PR fixes this by resetting the internal "activation trigger" when the combobox closes.
  2. If you open a combobox, hover over an option, then press up/down to select the option above or below it, then scroll with the mouse wheel the combobox will not let you scroll past the currently active option. This PR fixes this by ensuring interactions with the scroll wheel count as "pointer" interactions which allows the list to scroll freely.
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 7:47pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 7:47pm