React material autosuggest scrollbar not working on up and down arrow keys
See original GitHub issueBug
-
Steps to reproduce
- Focus on the input field
- Type
a
, and wait for suggestions to appear - Press Up/Down arrow key to navigate through the suggestions
Observed behavior: Suggestions get highlighted on pressing up/down keys (working as expected). But, the scrollbar remains at the top.
Expected behavior: Scrollbar should move according to the highlighted suggestion.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:6
Top Results From Across the Web
Material UI React-Autosuggest Scrollbar not working on ...
Material UI React-Autosuggest Scrollbar not working on selecting options ... arrow key. option is highlighted but scrollbar does not move.
Read more >Scrolling with Page Up/Down Keys in React-Window
But the problem is that when you click on an item in a list, you can't scroll up/down using keys. such as Page...
Read more >Autocomplete API - Material UI - MUI
Name Type Default
options * array
renderInput * func
autoComplete bool false
Read more >Scrolling | Angular Material
The scrolling package provides helpers for directives that react to scroll events. link cdkScrollable and ScrollDispatcher. The cdkScrollable directive and ...
Read more >A Guide on Material UI AutoComplete in React - Refine Dev
We'll discover the Material UI (MUI) AutoComplete component with ... An array of movie objects with 'title' as the key and the movie...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had this too. This was the best workaround I could come up with:
This was a css issue for me that was fixed by moving the
position: absolute; overflow-y: auto;
and other custom dropdown styling from the ‘ul’ class to the results container opened classreact-autosuggest__suggestions-container--open
.See this example: https://codepen.io/moroshko/pen/XRgbxR?editors=0110