vaffel / react-components

Searchable repository of React-components

Home Page:http://react-components.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search input is blocked while results load

vith opened this issue · comments

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.

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