Autocomplete box responds to typing text instead of clicking