mlms13/JS-Autocomplete — Issue #9: It's inefficient to search through the full list on each key press
Author: mlms13
Created: 2012-02-13 15:14:28+00:00
State: open

Currently, every time a character is entered, `getFilteredItems` searches the original list for matches. Most of the time, it would be safe to keep filtering the current filtered list.

Notable exceptions:

- backspace or delete is pressed
- the cursor is moved to a different position
- text is selected and replaced