Fix a bug where selecting an item from the autocomplete list would cause the search to be started