sickdyd/react-search-autocomplete

ENTER key gives errror

Closed this issue · 3 comments

Without typing anything just focusing on component's input and hitting ENTER key gives me an error:

TypeError: results[highlightedItem] is undefined

Component should not assume results is non-emty array.

Hey, I just check with version @6.0.0, and it's working fine, not giving any error now!. I think the problem is with the latest version. You can check with this version : npm i react-search-autocomplete@6.0.0

@beinoriusju @alamgir8 Thanks for reporting this, I will look into it over the weekend.

@beinoriusju @alamgir8 This problem has been fixed in version 6.1.2, please check it out!