GavinJoyce / ember-headlessui

https://gavinjoyce.github.io/ember-headlessui/
Other
92 stars 34 forks source link

The active `Listbox` option doesn't scroll into view when using keyboard arrows #180

Open barryofguilder opened 1 year ago

barryofguilder commented 1 year ago

It seems that when you render a Listbox with enough items where the menu scrolls, using the keyboard arrows to navigate through the options list won't scroll the active option into view.

To reproduce, I copied the contents of the listbox-with-transition.hbs example and added enough options so that the menu is scrollable. When I navigate the menu using the arrow keys, the active option isn't scrolled to. I have to manually use my mouse to scroll it into view.