tailwindlabs / headlessui

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

ComboBox Home and End keys don't work when ComboBox is closed #3558

Open siefkenj opened 1 week ago

siefkenj commented 1 week ago

When a ComboBox is open, the Home and End keys navigate to the first and last item in the ComboBox. However, when the ComboBox is closed, the Home and End keys appear to do nothing. They should respond in the usual way by navigating the cursor to the start and end of the text in the combo box.

I actually think that this should be the behavior either way, as long as the text portion of the ComboBox is what has focused. It makes sense that after pressing an arrow down key, then focus is applied to the dropdown and the Home/End keys have their current behavior.