Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activating Scrolling in React Autosuggest

How to activate scrolling using React Autosuggest (like the fourth example http://react-autosuggest.js.org/) ?

I can't get the option to do that in Documentation.

like image 425
awzx Avatar asked Mar 22 '17 19:03

awzx


1 Answers

Actually, it was quite straight-forward :

.react-autosuggest__suggestions-list
{
  max-height: 200px;
  overflow-y: auto;
}

Defining a static height and adding overflow-y to auto was the solution to my problem.

like image 123
awzx Avatar answered Nov 15 '22 04:11

awzx