vaffel / react-components

Searchable repository of React-components
http://react-components.com/
MIT License
164 stars 22 forks source link

Search input is blocked while results load #29

Closed vith closed 8 years ago

vith commented 9 years ago

When typing into the search field, new characters sometimes get lost. This is easiest to reproduce when every partial length of input has results. For example, ['r', 're', 'rea', 'reac', 'react'] all have results so it's difficult to type 'react' without ending up with something like 'rt' instead.

This is happening on Chrome 43 on Arch Linux, didn't test any other environments.

benjaminma commented 8 years ago

It might help to debounce or throttle the SearchInput's onChange to 250 or 500ms.