The error happens when ENTER key is pressed in the search bar before resultList.render() is called.
This patch prevents resultList.select(index) from being called when the selected result's index is -1
(i.e. when the result item is not selected yet).
The error happens when ENTER key is pressed in the search bar before resultList.render() is called. This patch prevents resultList.select(index) from being called when the selected result's index is -1 (i.e. when the result item is not selected yet).
How to reproduce the error: