onSelect getting called without clicking item in the list when there is only one matching option found in the list.
onSelect should only call when user clicks on list item or presses enter on the list item.
I am redirecting user on new page based on selected item. So when user types and result matches to single records, it calls redirection code I write in onSelect method. Which is a problem as user can't type again as page redirects as soon as onSelect calls.
onSelect getting called without clicking item in the list when there is only one matching option found in the list.
onSelect should only call when user clicks on list item or presses enter on the list item.
I am redirecting user on new page based on selected item. So when user types and result matches to single records, it calls redirection code I write in onSelect method. Which is a problem as user can't type again as page redirects as soon as onSelect calls.