Select: scroll, pointer, and arrow events conflicting and causing issues with active option and visibility #2572
Labels
bug
issue that does not match design or documentation and requires code changes to address
needs attention
To alert grommet team that a PR has been waiting for the author for a while
There are problems simultaneously handling the Select drop container scroll, pointer events, arrow key events, and the current active option.
Expected Behavior
If I have 2000 options in a Select, I should be able to press and hold the down arrow key to scroll through all 2000 items, making each option
active
(highlighted) until I hit the bottom of the list. Additionally, theactive
option should always be visible. This should be true no matter where i originally positioned my mouse pointer within the drop container.Actual Behavior
a) At that point the active options are no longer visible within the drop, but the drop container keeps scrolling, presumably making options active "below" the visible container.
b) Finally after ~40 change events, the scroll simply stops and pressing the down arrow key does not appear to have any effect.
Here is a recording of everything described above: http://g.recordit.co/lPAVS5k3Km.gif. Note that I did not release the down arrow key when the scrolling stopped.
Here is a recording of everything described above: http://g.recordit.co/6sWNnVyovH.gif.
Codesandbox exhibiting the issues
https://codesandbox.io/s/v8x34zn5j5 (Go to Select component)
Environment
The text was updated successfully, but these errors were encountered: